SecretStorePersistence class abstract
Supplied by the app to persist the SecretStore beyond the process lifetime (platform keystore, biometric storage, etc. — the app's concern). Without one, the store is in-memory only.
⚠️ Not read by at_client: it keeps per-enrollment secrets through
AtKeysIo, a client's start-up creates its AtClientSecretSharing with no
persistence (so one an app passes to a later forClient call is ignored),
and nothing calls SecretStore.init to load what was saved. It is kept for
secrets that belong to one client rather than to its enrollment.
The SDK ships no implementation, and ⛔ it writes key material here:
every held nskey private, the atSign-level signing-root private and
every arriving conveyed secret reach this store, SecretStore.putSecret
persists on every write, and save receives the complete list with each
Secret.value as plaintext base64. A backend supplied here must therefore
be a platform keystore or biometric storage, not a convenience cache.
save replaces whatever was stored and is never called concurrently: SecretStore serialises saves, because a backend that completed them out of order would persist an older snapshot over a newer one and silently lose a secret.
Constructors
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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited