summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2013-07-08 20:34:44 +0900
committerKali Kaneko <kali@leap.se>2013-07-08 23:38:57 +0900
commitd53ff42812fc78db9757b4daf338e23f825313f9 (patch)
tree79326608c5e3e79c21900cd3f3bb3f204818c763
parentaddf58efe589fa7d85779eb05c3738f23c2e715e (diff)
pep8
-rw-r--r--src/leap/crypto/srpauth.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/leap/crypto/srpauth.py b/src/leap/crypto/srpauth.py
index 8e228e79..12c769cf 100644
--- a/src/leap/crypto/srpauth.py
+++ b/src/leap/crypto/srpauth.py
@@ -51,18 +51,21 @@ class SRPAuthConnectionError(SRPAuthenticationError):
"""
pass
+
class SRPAuthUnknownUser(SRPAuthenticationError):
"""
Exception raised when trying to authenticate an unknown user
"""
pass
+
class SRPAuthBadStatusCode(SRPAuthenticationError):
"""
Exception raised when we received an unknown bad status code
"""
pass
+
class SRPAuthNoSalt(SRPAuthenticationError):
"""
Exception raised when we don't receive the salt param at a
@@ -70,6 +73,7 @@ class SRPAuthNoSalt(SRPAuthenticationError):
"""
pass
+
class SRPAuthNoB(SRPAuthenticationError):
"""
Exception raised when we don't receive the B param at a specific
@@ -77,12 +81,14 @@ class SRPAuthNoB(SRPAuthenticationError):
"""
pass
+
class SRPAuthBadDataFromServer(SRPAuthenticationError):
"""
Generic exception when we receive bad data from the server.
"""
pass
+
class SRPAuthJSONDecodeError(SRPAuthenticationError):
"""
Exception raised when there's a problem decoding the JSON content
@@ -90,12 +96,14 @@ class SRPAuthJSONDecodeError(SRPAuthenticationError):
"""
pass
+
class SRPAuthBadPassword(SRPAuthenticationError):
"""
Exception raised when the user provided a bad password to auth.
"""
pass
+
class SRPAuthVerificationFailed(SRPAuthenticationError):
"""
Exception raised when we can't verify the SRP data received from
@@ -103,6 +111,7 @@ class SRPAuthVerificationFailed(SRPAuthenticationError):
"""
pass
+
class SRPAuthNoSessionId(SRPAuthenticationError):
"""
Exception raised when we don't receive a session id from the
@@ -110,6 +119,7 @@ class SRPAuthNoSessionId(SRPAuthenticationError):
"""
pass
+
class SRPAuth(QtCore.QObject):
"""
SRPAuth singleton