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.



234
235
236
237
238
239
# File 'lib/accessgrid/console.rb', line 234

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.



232
233
234
# File 'lib/accessgrid/console.rb', line 232

def collector_id
  @collector_id
end

#fingerprintObject (readonly)

Returns the value of attribute fingerprint.



232
233
234
# File 'lib/accessgrid/console.rb', line 232

def fingerprint
  @fingerprint
end

#key_versionObject (readonly)

Returns the value of attribute key_version.



232
233
234
# File 'lib/accessgrid/console.rb', line 232

def key_version
  @key_version
end

#private_keyObject (readonly)

Returns the value of attribute private_key.



232
233
234
# File 'lib/accessgrid/console.rb', line 232

def private_key
  @private_key
end