File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed
socketlabs/injectionapi/core Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -9,17 +9,29 @@ class ApiKeyParseResult(Enum):
9
9
""" No result could be produced. """
10
10
NoneSet = 0
11
11
12
+ """ Invalid key length was found. """
13
+ InvalidKeyLength = 1
14
+
15
+ """ Invalid key format was found. """
16
+ InvalidKeyFormat = 2
17
+
12
18
""" The key was found to be blank or invalid. """
13
- InvalidEmptyOrWhitespace = 1
19
+ InvalidEmptyOrWhitespace = 3
14
20
15
21
""" The public portion of the key was unable to be parsed. """
16
- InvalidUnableToExtractPublicPart = 2
22
+ InvalidUnableToExtractPublicPart = 4
17
23
18
24
""" 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
20
32
21
33
""" Key was successfully parsed. """
22
- Success = 4
34
+ Success = 8
23
35
24
36
def __str__ (self ):
25
37
"""
You can’t perform that action at this time.
0 commit comments