Class: WebAuthn::AuthenticatorData::AttestedCredentialData::Credential
- Inherits:
-
Struct
- Object
- Struct
- WebAuthn::AuthenticatorData::AttestedCredentialData::Credential
- 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
-
#id ⇒ Object
Returns the value of attribute id.
-
#public_key ⇒ Object
Returns the value of attribute public_key.
Instance Method Summary collapse
Instance Attribute Details
#id ⇒ Object
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_key ⇒ Object
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_object ⇒ Object
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 |