Authenticator class
Constructors
- Authenticator(bool authenticationRequired, bool strongboxRequired, {CredentialSafe? credentialSafe, WebauthnCryptography? cryptography, LocalAuthentication? localAuth})
- Create a new instance of the Authenticator.
Properties
- authenticationRequired → bool
-
final
- credentialSafe → CredentialSafe
-
The secure store for our credentials
no setter
- crytography → WebauthnCryptography
-
The crypto handling functinality
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getAssertion(
GetAssertionOptions options, {dynamic localizationOptions = const AuthenticationLocalizationOptions()}) → Future< Assertion> -
Perform the authenticatorGetAssertion operation as defined by the WebAuthn spec
@see https://www.w3.org/TR/webauthn/#sctn-op-get-assertion
The
options
to get the assertion should be passed. An Assertion containing the selected credential and proofs is returned. -
makeCredential(
MakeCredentialOptions options, {dynamic attestationType = AttestationType.packed, dynamic localizationOptions = const AuthenticationLocalizationOptions()}) → Future< Attestation> - Perform the authenticatorMakeCredential operation as defined by the WebAuthn spec @see https://www.w3.org/TR/webauthn/#sctn-op-make-cred
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
handleGetAssertion(
GetAssertionOptions options, {dynamic localizationOptions = const AuthenticationLocalizationOptions()}) → Future< Assertion> -
Creates a new instance of the Authenticator required to be used with a given
set of Get Assertion
options
and processes the request. @see getAssertion for a description of the arguments -
handleMakeCredential(
MakeCredentialOptions options, {dynamic attestationType = AttestationType.packed, dynamic localizationOptions = const AuthenticationLocalizationOptions()}) → Future< Attestation> -
Creates a new instance of the Authenticator required to be used with a given
set of Make Credential
options
and processes the request. @see makeCredential for a description of the arguments
Constants
- authenticationDataLength → const int
- ES256_COSE → const CredTypePubKeyAlgoPair
- minSignatureDataLength → const int
- shaLength → const int