Class: U2F::Registration

Inherits:
Object
  • Object
show all
Defined in:
lib/u2f/registration.rb

Overview

A representation of a registered U2F device

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#certificateObject

Returns the value of attribute certificate.



5
6
7
# File 'lib/u2f/registration.rb', line 5

def certificate
  @certificate
end

#counterObject

Returns the value of attribute counter.



5
6
7
# File 'lib/u2f/registration.rb', line 5

def counter
  @counter
end

#key_handleObject

Returns the value of attribute key_handle.



5
6
7
# File 'lib/u2f/registration.rb', line 5

def key_handle
  @key_handle
end

#public_keyObject

Returns the value of attribute public_key.



5
6
7
# File 'lib/u2f/registration.rb', line 5

def public_key
  @public_key
end