add encrypt/decrypt utility functions with appropriate exceptions and tests
This commit is contained in:
parent
c161894324
commit
7eeead8a37
4 changed files with 303 additions and 1 deletions
|
|
@ -34,3 +34,23 @@ class NotAuthorizedException(JsonRESTError):
|
|||
"NotAuthorizedException", None)
|
||||
|
||||
self.description = '{"__type":"NotAuthorizedException"}'
|
||||
|
||||
|
||||
class AccessDeniedException(JsonRESTError):
|
||||
code = 400
|
||||
|
||||
def __init__(self, message):
|
||||
super(AccessDeniedException, self).__init__(
|
||||
"AccessDeniedException", message)
|
||||
|
||||
self.description = '{"__type":"AccessDeniedException"}'
|
||||
|
||||
|
||||
class InvalidCiphertextException(JsonRESTError):
|
||||
code = 400
|
||||
|
||||
def __init__(self):
|
||||
super(InvalidCiphertextException, self).__init__(
|
||||
"InvalidCiphertextException", None)
|
||||
|
||||
self.description = '{"__type":"InvalidCiphertextException"}'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue