Class: Authentik::Api::DigestAlgorithmEnum
- Inherits:
-
Object
- Object
- Authentik::Api::DigestAlgorithmEnum
- Defined in:
- lib/authentik/api/models/digest_algorithm_enum.rb
Constant Summary collapse
- HTTP___WWW_W3_ORG_2000_09_XMLDSIGSHA1 =
"http://www.w3.org/2000/09/xmldsig#sha1".freeze
- HTTP___WWW_W3_ORG_2001_04_XMLENCSHA256 =
"http://www.w3.org/2001/04/xmlenc#sha256".freeze
- HTTP___WWW_W3_ORG_2001_04_XMLDSIG_MORESHA384 =
"http://www.w3.org/2001/04/xmldsig-more#sha384".freeze
- HTTP___WWW_W3_ORG_2001_04_XMLENCSHA512 =
"http://www.w3.org/2001/04/xmlenc#sha512".freeze
Class Method Summary collapse
- .all_vars ⇒ Object
-
.build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Class Method Details
.all_vars ⇒ Object
17 18 19 |
# File 'lib/authentik/api/models/digest_algorithm_enum.rb', line 17 def self.all_vars @all_vars ||= [HTTP___WWW_W3_ORG_2000_09_XMLDSIGSHA1, HTTP___WWW_W3_ORG_2001_04_XMLENCSHA256, HTTP___WWW_W3_ORG_2001_04_XMLDSIG_MORESHA384, HTTP___WWW_W3_ORG_2001_04_XMLENCSHA512].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
24 25 26 |
# File 'lib/authentik/api/models/digest_algorithm_enum.rb', line 24 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
31 32 33 34 |
# File 'lib/authentik/api/models/digest_algorithm_enum.rb', line 31 def build_from_hash(value) return value if DigestAlgorithmEnum.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #DigestAlgorithmEnum" end |