SoftwarePasskeys class
An in-memory WebAuthn platform authenticator for end-to-end tests.
It produces real credentials (P-256 keys, none attestation, DER ECDSA
signatures, a signature counter) that a WebAuthn relying party verifies
exactly like a platform passkey, without the OS prompt or a device
account. origin is what clientDataJSON.origin reports; for MoonX it
is https://<rp_id>, the origin a native iOS passkey reports.
Never use this outside tests: the private keys live in process memory.
- Implemented types
Constructors
- SoftwarePasskeys({required String origin, Random? random})
Properties
- credentialCount → int
-
How many credentials have been created.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- origin → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
create(
Map< String, Object?> options) → Future<Map< String, Object?> ?> -
Creates a credential from the server's
PublicKeyCredentialCreationOptionsJSON.override -
get(
Map< String, Object?> request) → Future<Map< String, Object?> ?> -
Runs a WebAuthn assertion.
requestcarrieschallenge,rpId,allowCredentialsanduserVerification.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
publicKeyFor(
String credentialIdB64url) → (Uint8List, Uint8List)? - The raw P-256 public key (x, y) of a credential, for assertions in tests.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited