FileAtKeysIo class

File-backed .atKeys storage.

Inheritance

Constructors

FileAtKeysIo({String filePath(String)?, String? passPhrase})
Keys kept in the keyfile filePath names for each atSign, by default the one under the home directory; where there is no home directory, every read and write of the default throws AtException saying so.

Properties

assurance → AtKeysAssurance
finalinherited
filePath ↔ String Function(String)?
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
passPhrase ↔ String?
getter/setter pair
passphraseCodec → AtKeysPassphraseEnvelopeCodec
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkWritable(String atsign) → Future<void>
Throws FileSystemException naming the keyfile's path when anything, such as a directory, is already at that path, or when a new file cannot be created beside it.
override
describeSource(String atsign) → String
The keyfile's path, or, when filePath cannot resolve it, such as the default path on a platform with no home directory, a description that says so.
override
flush(Atsign atsign, AtKeys atKeys) → Future<void>
Persists atKeys as the complete new state for atsign.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(String atsign) → Future<AtKeys>
override
toString() → String
A string representation of this object.
inherited
update(Atsign atsign, FutureOr<bool> mutate(AtKeys keys)) → Future<void>
Read, mutate and write inside one hold of the lock.
override
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.
override

Operators

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

Constants

legacyShapeBackupSuffix → const String
The suffix _preserveLegacyShape writes the pre-upgrade document under.