Class: PolyPseudo::Key

Inherits:
Object
  • Object
show all
Defined in:
lib/poly_pseudo/key.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ Key

Returns a new instance of Key.



5
6
7
8
9
10
11
12
# File 'lib/poly_pseudo/key.rb', line 5

def initialize(attributes)
  @scheme_version            = attributes["SchemeVersion"]
  @scheme_key_version        = attributes["SchemeKeyVersion"]
  @type                      = attributes["Type"]
  @recipient                 = attributes["Recipient"]
  @recipient_key_set_version = attributes["RecipientKeySetVersion"]
  @ec                        = attributes["PrivateKey"]
end

Instance Attribute Details

#ecObject (readonly)

Returns the value of attribute ec.



3
4
5
# File 'lib/poly_pseudo/key.rb', line 3

def ec
  @ec
end

#recipientObject (readonly)

Returns the value of attribute recipient.



3
4
5
# File 'lib/poly_pseudo/key.rb', line 3

def recipient
  @recipient
end

#recipient_key_set_versionObject (readonly)

Returns the value of attribute recipient_key_set_version.



3
4
5
# File 'lib/poly_pseudo/key.rb', line 3

def recipient_key_set_version
  @recipient_key_set_version
end

#scheme_key_versionObject (readonly)

Returns the value of attribute scheme_key_version.



3
4
5
# File 'lib/poly_pseudo/key.rb', line 3

def scheme_key_version
  @scheme_key_version
end

#scheme_versionObject (readonly)

Returns the value of attribute scheme_version.



3
4
5
# File 'lib/poly_pseudo/key.rb', line 3

def scheme_version
  @scheme_version
end

#typeObject (readonly)

Returns the value of attribute type.



3
4
5
# File 'lib/poly_pseudo/key.rb', line 3

def type
  @type
end