Skip to content

Commit fe6956d

Browse files
adding missing enums
1 parent f17baf0 commit fe6956d

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

socketlabs/injectionapi/core/apikeyparseresult.py

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,29 @@ class ApiKeyParseResult(Enum):
99
""" No result could be produced. """
1010
NoneSet = 0
1111

12+
""" Invalid key length was found. """
13+
InvalidKeyLength = 1
14+
15+
""" Invalid key format was found. """
16+
InvalidKeyFormat = 2
17+
1218
""" The key was found to be blank or invalid. """
13-
InvalidEmptyOrWhitespace = 1
19+
InvalidEmptyOrWhitespace = 3
1420

1521
""" The public portion of the key was unable to be parsed. """
16-
InvalidUnableToExtractPublicPart = 2
22+
InvalidUnableToExtractPublicPart = 4
1723

1824
""" The secret portion of the key was unable to be parsed. """
19-
InvalidUnableToExtractSecretPart = 3
25+
InvalidUnableToExtractSecretPart = 5
26+
27+
""" The public portion of the key is the incorrect length. """
28+
InvalidPublicPartLength = 6
29+
30+
""" The secret portion of the key is the incorrect length. """
31+
InvalidSecretPartLength = 7
2032

2133
""" Key was successfully parsed. """
22-
Success = 4
34+
Success = 8
2335

2436
def __str__(self):
2537
"""

0 commit comments

Comments
 (0)