Class: LastPass::Blob
- Inherits:
-
Object
- Object
- LastPass::Blob
- Defined in:
- lib/lastpass/blob.rb
Instance Attribute Summary collapse
-
#bytes ⇒ Object
readonly
Returns the value of attribute bytes.
-
#encrypted_private_key ⇒ Object
readonly
Returns the value of attribute encrypted_private_key.
-
#key_iteration_count ⇒ Object
readonly
Returns the value of attribute key_iteration_count.
Instance Method Summary collapse
- #encryption_key(username, password) ⇒ Object
-
#initialize(bytes, key_iteration_count, encrypted_private_key) ⇒ Blob
constructor
A new instance of Blob.
Constructor Details
#initialize(bytes, key_iteration_count, encrypted_private_key) ⇒ Blob
Returns a new instance of Blob.
10 11 12 13 14 |
# File 'lib/lastpass/blob.rb', line 10 def initialize bytes, key_iteration_count, encrypted_private_key @bytes = bytes @key_iteration_count = key_iteration_count @encrypted_private_key = encrypted_private_key end |
Instance Attribute Details
#bytes ⇒ Object (readonly)
Returns the value of attribute bytes.
6 7 8 |
# File 'lib/lastpass/blob.rb', line 6 def bytes @bytes end |
#encrypted_private_key ⇒ Object (readonly)
Returns the value of attribute encrypted_private_key.
6 7 8 |
# File 'lib/lastpass/blob.rb', line 6 def encrypted_private_key @encrypted_private_key end |
#key_iteration_count ⇒ Object (readonly)
Returns the value of attribute key_iteration_count.
6 7 8 |
# File 'lib/lastpass/blob.rb', line 6 def key_iteration_count @key_iteration_count end |