PasskeyBinding class final

Immutable, nonsecret credential metadata. Integrity-protect it with the data it unlocks; deserialization is structural validation, not authentication.

This experimental encoding is not yet a stable storage format.

Constructors

PasskeyBinding({required String domain, required Uint8List credentialId, required Uint8List userId, required Uint8List publicKeyCose, required Uint8List input, required AuthenticatorState authenticatorState, PasskeyRoute route = PasskeyRoute.system, List<String> transports = const []})
PasskeyBinding.fromJson(Map<String, Object?> json)
factory

Properties

authenticatorState → AuthenticatorState
final
credentialId → Uint8List
final
domain → String
final
hashCode → int
The hash code for this object.
no setterinherited
input → Uint8List
Original WebAuthn PRF input, not a pre-hashed CTAP hmac-secret salt.
final
publicKeyCose → Uint8List
Encoded COSE_Key. The adapter must validate its algorithm and parameters.
final
route → PasskeyRoute
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
transports → List<String>
Hints only; a transport change must not change credential identity.
final
userId → Uint8List
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object>
toString() → String
A string representation of this object.
override
withState(AuthenticatorState state) → PasskeyBinding

Operators

operator ==(Object other) → bool
The equality operator.
inherited