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

Methods

Attributes

app_id  [RW] 

Public Class methods

  • Args:
    • app_id:: An application (facet) ID string

Convert a binary public key to PEM format

  • Args:
    • key:: Binary public key
  • Returns:
    • A base64 encoded public key String in PEM format
  • Raises:

Public Instance methods

Authenticate a response from the U2F device

Generate data to be sent to the U2F device before authenticating

  • Args:
    • key_handles:: Array of previously registered U2F key handles
  • Returns:

Generates a 32 byte long random U2F challenge

Authenticate the response from the U2F device when registering

Generate data to be used when registering a U2F device

[Validate]