AuthWebAuthnChallenge class final
A persisted, one-time WebAuthn challenge.
The raw challenge is returned only to the browser. Stores receive its digest through challengeHash, so a database dump cannot be used as a ready-to-submit ceremony response.
Constructors
- AuthWebAuthnChallenge({required String id, required String challengeHash, required AuthWebAuthnCeremony ceremony, required String relyingPartyId, required String origin, required DateTime createdAt, required DateTime expiresAt, String? userId})
-
Creates a persisted, one-time WebAuthn challenge.
const
Properties
- ceremony → AuthWebAuthnCeremony
-
Ceremony for which this challenge was issued.
final
- challengeHash → String
-
Digest of the raw challenge returned to the browser.
final
- createdAt → DateTime
-
Time at which the challenge was created.
final
- expiresAt → DateTime
-
Time at which the challenge expires.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Stable identifier for the challenge record.
final
- origin → String
-
Canonical origin bound to the challenge.
final
- relyingPartyId → String
-
Relying-party identifier bound to the challenge.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- userId → String?
-
User bound to the challenge, or
nullfor discoverable authentication.final
Methods
-
isActive(
{DateTime? now}) → bool -
Returns whether the challenge is active at
now. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serializes non-secret challenge metadata for diagnostics or persistence.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited