Class: U2F::Registration
- Inherits:
-
Object
- Object
- U2F::Registration
- Defined in:
- lib/u2f/registration.rb
Overview
A representation of a registered U2F device
Instance Attribute Summary collapse
-
#certificate ⇒ Object
Returns the value of attribute certificate.
-
#counter ⇒ Object
Returns the value of attribute counter.
-
#key_handle ⇒ Object
Returns the value of attribute key_handle.
-
#public_key ⇒ Object
Returns the value of attribute public_key.
Instance Method Summary collapse
-
#initialize(key_handle, public_key, certificate) ⇒ Registration
constructor
A new instance of Registration.
Constructor Details
#initialize(key_handle, public_key, certificate) ⇒ Registration
Returns a new instance of Registration.
6 7 8 9 10 |
# File 'lib/u2f/registration.rb', line 6 def initialize(key_handle, public_key, certificate) @key_handle = key_handle @public_key = public_key @certificate = certificate end |
Instance Attribute Details
#certificate ⇒ Object
Returns the value of attribute certificate.
5 6 7 |
# File 'lib/u2f/registration.rb', line 5 def certificate @certificate end |
#counter ⇒ Object
Returns the value of attribute counter.
5 6 7 |
# File 'lib/u2f/registration.rb', line 5 def counter @counter end |
#key_handle ⇒ Object
Returns the value of attribute key_handle.
5 6 7 |
# File 'lib/u2f/registration.rb', line 5 def key_handle @key_handle end |
#public_key ⇒ Object
Returns the value of attribute public_key.
5 6 7 |
# File 'lib/u2f/registration.rb', line 5 def public_key @public_key end |