PasskeySession class

A client opened with a passkey, with the key store it runs on and the passkey vault that store seals with.

The session closes the store and then the vault once the client has stopped, whether through stop or by the client's own stop(). It learns of a stop from the client's connection changes ending, which they do as the stop begins, and then waits, up to its bound, for that stop to finish and then for every @keys write queued on the store, including one queued while the stop ran, to end.

Constructors

PasskeySession(AtClient client, AtServerAtKeysIo store, PasskeyVault vault, {Duration settleWithin = defaultSettleWithin})
The session of client, running on store, which seals with vault.

Properties

client → AtClient
The client running as the passkey's enrollment.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
stop() → Future<void>
Stops the client, then closes the key store and the vault, even when the client's stop throws; that error then propagates.
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

defaultSettleWithin → const Duration
How long a session waits by default for its client's stop and a queued @keys write to end, on top of the store's lock wait bound.