Class U2F::RegisterResponse
In: lib/u2f/register_response.rb
Parent: Object

Representation of a U2F registration response. See chapter 4.3: fidoalliance.org/specs/fido-u2f-raw-message-formats-v1.0-rd-20141008.pdf

Methods

Constants

PUBLIC_KEY_OFFSET = 1
PUBLIC_KEY_LENGTH = 65
KEY_HANDLE_LENGTH_LENGTH = 1
KEY_HANDLE_LENGTH_OFFSET = PUBLIC_KEY_OFFSET + PUBLIC_KEY_LENGTH
KEY_HANDLE_OFFSET = KEY_HANDLE_LENGTH_OFFSET + KEY_HANDLE_LENGTH_LENGTH

Attributes

client_data  [RW] 
client_data_json  [RW] 
registration_data_raw  [RW] 

Public Class methods

Public Instance methods

The attestation certificate in Base64 encoded X.509 DER format

Length of the attestation certificate

Returns the key handle from registration data, URL safe base64 encoded

Returns the length of the key handle, extracted from the registration data

The parsed attestation certificate

Returns the public key, extracted from the registration data

Returns the signature, extracted from the registration data

Verifies the registration data against the app id

[Validate]