AuthWebAuthnCeremonyFixture class final
Deterministic browser-shaped ES256 WebAuthn ceremony payloads.
This fixture is test support only. It models PublicKeyCredential.toJSON()
values while retaining the private key needed to sign assertions. It never
contacts a browser, authenticator, metadata service, or network endpoint.
Constructors
- AuthWebAuthnCeremonyFixture({required String relyingPartyId, required Uri origin, String credentialName = 'Runtime platform passkey'})
- Creates a deterministic platform-passkey fixture for one relying party.
Properties
- credentialId → String
-
Stable base64url credential ID used by both ceremonies.
no setter
- credentialName → String
-
Routed passkey label carried beside the browser credential JSON.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- origin → String
-
Browser origin serialized into collected client data.
final
- relyingPartyId → String
-
RP ID hashed into authenticator data.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
assertionCredential(
{required String challenge, required int counter, String? userHandle}) → Map< String, dynamic> - Builds a browser-shaped assertion with an ASN.1 DER ES256 signature.
-
hasDerEs256Signature(
Map< String, dynamic> credential) → bool -
Whether
credentialcontains a structurally complete DER sequence. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registrationCredential(
{required String challenge}) → Map< String, dynamic> -
Builds a browser-shaped registration credential for
challenge. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited