Class: SecureToken::KeyPair

Inherits:
Struct
  • Object
show all
Defined in:
lib/secure_token.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ KeyPair

Returns a new instance of KeyPair.



13
14
15
16
# File 'lib/secure_token.rb', line 13

def initialize(*args)
  super
  freeze
end

Instance Attribute Details

#encryption_keyObject

Returns the value of attribute encryption_key

Returns:

  • (Object)

    the current value of encryption_key



11
12
13
# File 'lib/secure_token.rb', line 11

def encryption_key
  @encryption_key
end

#signing_keyObject

Returns the value of attribute signing_key

Returns:

  • (Object)

    the current value of signing_key



11
12
13
# File 'lib/secure_token.rb', line 11

def signing_key
  @signing_key
end