Secure storage for per-database encryption keys.
One entry per database id. On mobile the backing store is the OS keychain
via passnote_flutter; for tests an in-memory map suffices.
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
-
clear(
String databaseId) → Future< void> -
Removes the entry for
databaseId. -
getKey(
String databaseId) → Future< List< int> ?> -
Returns the encryption key for
databaseId, ornullif not set. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setKey(
String databaseId, List< int> key) → Future<void> -
Stores
keyfordatabaseId, replacing any existing value. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited