Class: WebAuthn::AuthenticatorData::AttestedCredentialData::Credential

Inherits:
Struct
  • Object
show all
Defined in:
lib/webauthn/authenticator_data/attested_credential_data.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#algorithmObject

Returns the value of attribute algorithm

Returns:

  • (Object)

    the current value of algorithm



25
26
27
# File 'lib/webauthn/authenticator_data/attested_credential_data.rb', line 25

def algorithm
  @algorithm
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



25
26
27
# File 'lib/webauthn/authenticator_data/attested_credential_data.rb', line 25

def id
  @id
end

#public_keyObject

Returns the value of attribute public_key

Returns:

  • (Object)

    the current value of public_key



25
26
27
# File 'lib/webauthn/authenticator_data/attested_credential_data.rb', line 25

def public_key
  @public_key
end

Instance Method Details

#public_key_objectObject



27
28
29
# File 'lib/webauthn/authenticator_data/attested_credential_data.rb', line 27

def public_key_object
  COSE::Key.deserialize(public_key).to_pkey
end