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

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

Overview

TODO: use keyword_init when we dropped Ruby 2.4 support

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#idObject

Returns the value of attribute id



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

def id
  @id
end

#public_keyObject

Returns the value of attribute public_key



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

def public_key
  @public_key
end

Instance Method Details

#public_key_objectObject



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

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