Class: AccessGrid::RevealTemplatePrivateKey

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_idObject (readonly)

Returns the value of attribute collector_id.



228
229
230
# File 'lib/accessgrid/console.rb', line 228

def collector_id
  @collector_id
end

#fingerprintObject (readonly)

Returns the value of attribute fingerprint.



228
229
230
# File 'lib/accessgrid/console.rb', line 228

def fingerprint
  @fingerprint
end

#key_versionObject (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_keyObject (readonly)

Returns the value of attribute private_key.



228
229
230
# File 'lib/accessgrid/console.rb', line 228

def private_key
  @private_key
end