Class: AccessGrid::RevealTemplatePrivateKey
- Inherits:
-
Object
- Object
- AccessGrid::RevealTemplatePrivateKey
- Defined in:
- lib/accessgrid/console.rb
Overview
Result of revealing a SmartTap private key. #private_key is the plaintext PEM, decrypted client-side by the SDK; the encrypted envelope is consumed internally and not exposed.
Instance Attribute Summary collapse
-
#collector_id ⇒ Object
readonly
Returns the value of attribute collector_id.
-
#fingerprint ⇒ Object
readonly
Returns the value of attribute fingerprint.
-
#key_version ⇒ Object
readonly
Returns the value of attribute key_version.
-
#private_key ⇒ Object
readonly
Returns the value of attribute private_key.
Instance Method Summary collapse
-
#initialize(data) ⇒ RevealTemplatePrivateKey
constructor
A new instance of RevealTemplatePrivateKey.
Constructor Details
#initialize(data) ⇒ RevealTemplatePrivateKey
Returns a new instance of RevealTemplatePrivateKey.
230 231 232 233 234 235 |
# File 'lib/accessgrid/console.rb', line 230 def initialize(data) @key_version = data['key_version'] @collector_id = data['collector_id'] @fingerprint = data['fingerprint'] @private_key = data['private_key'] end |
Instance Attribute Details
#collector_id ⇒ Object (readonly)
Returns the value of attribute collector_id.
228 229 230 |
# File 'lib/accessgrid/console.rb', line 228 def collector_id @collector_id end |
#fingerprint ⇒ Object (readonly)
Returns the value of attribute fingerprint.
228 229 230 |
# File 'lib/accessgrid/console.rb', line 228 def fingerprint @fingerprint end |
#key_version ⇒ Object (readonly)
Returns the value of attribute key_version.
228 229 230 |
# File 'lib/accessgrid/console.rb', line 228 def key_version @key_version end |
#private_key ⇒ Object (readonly)
Returns the value of attribute private_key.
228 229 230 |
# File 'lib/accessgrid/console.rb', line 228 def private_key @private_key end |