Class: KeeperSecretsManager::Dto::TransmissionKey

Inherits:
Object
  • Object
show all
Defined in:
lib/keeper_secrets_manager/dto/payload.rb

Overview

Transmission key for encrypted communication

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(public_key_id:, key:, encrypted_key:) ⇒ TransmissionKey

Returns a new instance of TransmissionKey.



7
8
9
10
11
# File 'lib/keeper_secrets_manager/dto/payload.rb', line 7

def initialize(public_key_id:, key:, encrypted_key:)
  @public_key_id = public_key_id
  @key = key
  @encrypted_key = encrypted_key
end

Instance Attribute Details

#encrypted_keyObject

Returns the value of attribute encrypted_key.



5
6
7
# File 'lib/keeper_secrets_manager/dto/payload.rb', line 5

def encrypted_key
  @encrypted_key
end

#keyObject

Returns the value of attribute key.



5
6
7
# File 'lib/keeper_secrets_manager/dto/payload.rb', line 5

def key
  @key
end

#public_key_idObject

Returns the value of attribute public_key_id.



5
6
7
# File 'lib/keeper_secrets_manager/dto/payload.rb', line 5

def public_key_id
  @public_key_id
end