Class: SocketLabs::InjectionApi::Core::ApiKeyParseResult

Inherits:
Object
  • Object
show all
Defined in:
lib/socketlabs/injectionapi/core/api_key_parse_result.rb

Class Method Summary collapse

Class Method Details

.enumObject



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# File 'lib/socketlabs/injectionapi/core/api_key_parse_result.rb', line 8

def self.enum
{
  # No result could be produced.

  "None" =>
    {
      :name => "None",
      :value => 0,
    },
  # Invalid key length was found.

  "InvalidKeyLength" =>
    {
      :name => "InvalidKeyLength",
      :value => 1,
    },
  # Invalid key format was found.

  "InvalidKeyFormat" =>
    {
      :name => "InvalidKeyFormat",
      :value => 2,
    },
  # The key was found to be blank or invalid.

  "InvalidEmptyOrWhitespace" =>
    {
      :name => "InvalidEmptyOrWhitespace",
      :value => 3,
    },
  # The public portion of the key was unable to be parsed.

  "InvalidUnableToExtractPublicPart" =>
    {
      :name => "InvalidUnableToExtractPublicPart",
      :value => 4,
    },
  # The secret portion of the key was unable to be parsed.

  "InvalidUnableToExtractSecretPart" =>
    {
      :name => "InvalidUnableToExtractSecretPart",
      :value => 5,
    },
  # The public portion of the key is the incorrect length.

  "InvalidPublicPartLength" =>
    {
      :name => "InvalidPublicPartLength",
      :value => 6,
    },
  # The secret portion of the key is the incorrect length.

  "InvalidSecretPartLength" =>
    {
      :name => "InvalidSecretPartLength",
      :value => 7,
    },
  # Key was successfully parsed.

  "Success" =>
    {
      :name => "Success",
      :value => 8,
    }
}
end