Class: HasHelpers::ServiceTrust::KeyManager::EnvKey
- Inherits:
-
Struct
- Object
- Struct
- HasHelpers::ServiceTrust::KeyManager::EnvKey
- Defined in:
- lib/has_helpers/service_trust/key_manager.rb
Instance Attribute Summary collapse
-
#active ⇒ Object
Returns the value of attribute active.
-
#algorithm ⇒ Object
Returns the value of attribute algorithm.
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#kid ⇒ Object
Returns the value of attribute kid.
-
#private_key_pem ⇒ Object
Returns the value of attribute private_key_pem.
-
#public_key_pem ⇒ Object
Returns the value of attribute public_key_pem.
Instance Method Summary collapse
Instance Attribute Details
#active ⇒ Object
Returns the value of attribute active
11 12 13 |
# File 'lib/has_helpers/service_trust/key_manager.rb', line 11 def active @active end |
#algorithm ⇒ Object
Returns the value of attribute algorithm
11 12 13 |
# File 'lib/has_helpers/service_trust/key_manager.rb', line 11 def algorithm @algorithm end |
#environment ⇒ Object
Returns the value of attribute environment
11 12 13 |
# File 'lib/has_helpers/service_trust/key_manager.rb', line 11 def environment @environment end |
#kid ⇒ Object
Returns the value of attribute kid
11 12 13 |
# File 'lib/has_helpers/service_trust/key_manager.rb', line 11 def kid @kid end |
#private_key_pem ⇒ Object
Returns the value of attribute private_key_pem
11 12 13 |
# File 'lib/has_helpers/service_trust/key_manager.rb', line 11 def private_key_pem @private_key_pem end |
#public_key_pem ⇒ Object
Returns the value of attribute public_key_pem
11 12 13 |
# File 'lib/has_helpers/service_trust/key_manager.rb', line 11 def public_key_pem @public_key_pem end |
Instance Method Details
#id ⇒ Object
20 21 22 |
# File 'lib/has_helpers/service_trust/key_manager.rb', line 20 def id nil end |
#persisted? ⇒ Boolean
24 25 26 |
# File 'lib/has_helpers/service_trust/key_manager.rb', line 24 def persisted? false end |
#public_key ⇒ Object
16 17 18 |
# File 'lib/has_helpers/service_trust/key_manager.rb', line 16 def public_key OpenSSL::PKey.read(public_key_pem) end |
#to_openssl ⇒ Object
12 13 14 |
# File 'lib/has_helpers/service_trust/key_manager.rb', line 12 def to_openssl OpenSSL::PKey.read(private_key_pem) end |