FileKeyStorage class final
KeyStorage in a directory, one file per key.
Files are restricted to owner-only permissions on POSIX systems
(chmod 600, applied before any key bytes are written). Temporary
files are named <key>.<random>.tmp and are not listed as keys. Writes
through one instance are serialized per key; concurrent writers in
different processes are not coordinated (on Windows the losing rename
fails). This is ordinary file storage: it is not
hardware-backed and offers no protection against other code running as
the same user. Combine it with a KeyStore password for private keys.
- Implemented types
Constructors
- FileKeyStorage(Directory directory)
Properties
Methods
-
delete(
String name) → Future< void> -
Deletes
nameonce its pending writes have landed, so a delete issued after a write is not undone by that write's rename.override -
list(
) → Future< List< String> > -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
String name) → Future< Uint8List?> -
override
-
toString(
) → String -
A string representation of this object.
inherited
-
write(
String name, Uint8List data) → Future< void> -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited