TomSecretsAdminKeyring class final

The admin keys in a keychain reached through read, write and delete (the keychain's own operations; their failures pass through).

Constructors

TomSecretsAdminKeyring({required Future<String?> read(String handle), required Future<void> write(String handle, String value), required Future<void> delete(String handle)})
A keyring over the keychain operations read, write and delete.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

forget(int start) → Future<void>
Removes the key of the service started at start (it was stopped) and its index entry.
keep(int start, Uint8List key) → Future<void>
Keeps key for the service started at start and records the start in the index.
keyOf(int start) → Future<Uint8List?>
The admin key kept for the service started at start, or null.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pruneOthers(int? running) → Future<List<int>>
Removes every recorded key but the one of the service started at running (null: none runs, every key goes); answers the starts whose key was removed.
recorded() → Future<Set<int>>
The starts the index records.
toString() → String
A string representation of this object.
inherited

Operators

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