Reads and writes device-local secrets by opaque handle.
A device keeps one secret here — the key of its encrypted settings container — and everything else that is a secret lives inside that container, so a device that loses this store loses only its settings.
A handle is not a secret and not a name the user chose; it is an identifier recorded in device settings so a later launch can find the value again. It says nothing about what it unlocks, which is why it may be written to a plaintext file.
The backing store is a platform fact — Keychain, libsecret, Credential Manager — so the composition root supplies an implementation.
- Implemented types
- Implementers
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
-
delete(
String handle) → Future< void> -
Forgets the secret at
handle, if any. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
String handle) → Future< String?> -
The secret stored under
handle, or null when nothing is.override -
toString(
) → String -
A string representation of this object.
inherited
-
write(
String handle, String secret) → Future< void> -
Stores
secretunderhandle, replacing any current value.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited