Class: Authentik::Api::SignatureAlgorithmEnum

Inherits:
Object
  • Object
show all
Defined in:
lib/authentik/api/models/signature_algorithm_enum.rb

Constant Summary collapse

HTTP___WWW_W3_ORG_2000_09_XMLDSIGRSA_SHA1 =
"http://www.w3.org/2000/09/xmldsig#rsa-sha1".freeze
HTTP___WWW_W3_ORG_2001_04_XMLDSIG_MORERSA_SHA256 =
"http://www.w3.org/2001/04/xmldsig-more#rsa-sha256".freeze
HTTP___WWW_W3_ORG_2001_04_XMLDSIG_MORERSA_SHA384 =
"http://www.w3.org/2001/04/xmldsig-more#rsa-sha384".freeze
HTTP___WWW_W3_ORG_2001_04_XMLDSIG_MORERSA_SHA512 =
"http://www.w3.org/2001/04/xmldsig-more#rsa-sha512".freeze
HTTP___WWW_W3_ORG_2001_04_XMLDSIG_MOREECDSA_SHA1 =
"http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha1".freeze
HTTP___WWW_W3_ORG_2001_04_XMLDSIG_MOREECDSA_SHA256 =
"http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha256".freeze
HTTP___WWW_W3_ORG_2001_04_XMLDSIG_MOREECDSA_SHA384 =
"http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha384".freeze
HTTP___WWW_W3_ORG_2001_04_XMLDSIG_MOREECDSA_SHA512 =
"http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha512".freeze
HTTP___WWW_W3_ORG_2000_09_XMLDSIGDSA_SHA1 =
"http://www.w3.org/2000/09/xmldsig#dsa-sha1".freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



29
30
31
# File 'lib/authentik/api/models/signature_algorithm_enum.rb', line 29

def self.build_from_hash(value)
  new.build_from_hash(value)
end

Instance Method Details

#build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



36
37
38
39
# File 'lib/authentik/api/models/signature_algorithm_enum.rb', line 36

def build_from_hash(value)
  return value if SignatureAlgorithmEnum.all_vars.include?(value)
  raise "Invalid ENUM value #{value} for class #SignatureAlgorithmEnum"
end