Class: WebAuthn::Context::Registration
- Inherits:
-
WebAuthn::Context
- Object
- WebAuthn::Context
- WebAuthn::Context::Registration
- Defined in:
- lib/web_authn/context/registration.rb
Instance Attribute Summary collapse
-
#attestation_object ⇒ Object
Returns the value of attribute attestation_object.
Attributes inherited from WebAuthn::Context
Instance Method Summary collapse
Methods inherited from WebAuthn::Context
#authentication?, for, #initialize, #verify_session!
Constructor Details
This class inherits a constructor from WebAuthn::Context
Instance Attribute Details
#attestation_object ⇒ Object
Returns the value of attribute attestation_object.
4 5 6 |
# File 'lib/web_authn/context/registration.rb', line 4 def attestation_object @attestation_object end |
Instance Method Details
#registration? ⇒ Boolean
11 12 13 |
# File 'lib/web_authn/context/registration.rb', line 11 def registration? true end |
#verify!(encoded_attestation_object) ⇒ Object
15 16 17 18 19 20 |
# File 'lib/web_authn/context/registration.rb', line 15 def verify!(encoded_attestation_object) self.attestation_object = AttestationObject.decode( encoded_attestation_object ) self end |