TomKeyStore class abstract

Persists container keys across sessions.

Holds two default keys and the per-file overrides, so a start-up can re-hydrate a TomKeyRegistry without prompting for anything the user has already answered.

Two defaults rather than one because documents and shared collaboration files are routinely opened by different sets of people: someone who may open a folder's collaboration file need not be able to open every document in it.

Implementers

Constructors

TomKeyStore()

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

loadCollaborationDefaultKey() → Future<TomKeyMaterial?>
The persisted default collaboration-file key, or null.
loadDefaultKey() → Future<TomKeyMaterial?>
The persisted default document key, or null when none was saved.
loadOverrides() → Future<Map<String, TomKeyMaterial>>
Every persisted per-file override, keyed by locator.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeOverride(String locator) → Future<void>
Removes the persisted override for locator.
saveCollaborationDefaultKey(TomKeyMaterial? material) → Future<void>
Persists (or clears) the default collaboration-file key.
saveDefaultKey(TomKeyMaterial? material) → Future<void>
Persists (or clears, when material is null) the default document key.
saveOverride(String locator, TomKeyMaterial material) → Future<void>
Persists a per-file override for locator.
toString() → String
A string representation of this object.
inherited

Operators

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