InMemoryAtKeysIo class

Stores AtKeys in process memory.

This implementation is useful for tests and short-lived flows where the keys have already been loaded or generated elsewhere. It does not encrypt, serialize, or persist keys beyond the lifetime of this object.

Inheritance

Constructors

InMemoryAtKeysIo()

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

decodeAtKeys(Map<String, dynamic> decodedAtKeysData, {String? passPhrase}) Future<Map<String, dynamic>>
inherited
decryptAtKeysWithSelfEncKey(Map<String, dynamic> jsonData, PkamAuthMode authMode) Future<AtKeys>
inherited
encryptAtKeysWithSelfEncKey(AtKeys atKeys, PkamAuthMode authMode, String atsign) Future<String>
inherited
flush(Atsign atsign, AtKeys atKeys) FutureOr<void>
Literal mirror to write as there is no need to flush to memory.
override
generateKeyPairs({PkamAuthMode authMode = PkamAuthMode.keysFile, String? atSign}) AtKeys
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(String atsign) FutureOr<AtKeys>
Returns the keys for atsign, or throws if nothing has been loaded into memory for that atsign.
override
toString() String
A string representation of this object.
inherited
write(String atsign, AtKeys atKeys) Future<void>
Replaces any existing in-memory keys for atsign.
override

Operators

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