WrittenAtKeysIo class abstract
An interface that defines methods for AtKeys that can be written. It can be implemented by classes that write AtKeys to different sources, such as file system or keychain.
⚠️ The store a client runs on MUST be durable: what is written to it survives the process. A client files key material there that exists nowhere else, the atSign's signing root among it, so a store that forgets strands it. InMemoryAtKeysIo is the exception, for tests.
Constructors
Properties
- assurance → AtKeysAssurance
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- passphraseCodec → AtKeysPassphraseEnvelopeCodec
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
flush(
Atsign atsign, AtKeys atKeys) → FutureOr< void> -
Persists
atKeysas the complete new state foratsign. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
String atsign) → FutureOr< AtKeys> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
Atsign atsign, FutureOr< bool> mutate(AtKeys keys)) → Future<void> -
Reads
atsign's keys, appliesmutateto them, and persists the result — as one operation. -
write(
String atsign, AtKeys atKeys) → Future - Create-only initial persist (fresh onboard); implementations throw if the target already exists. Use flush to persist later mutations.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited