ContentKeyCache class
Cache of decapsulated content keys, keyed by (owner, namespace, ckKid).
Never key by ckKid alone: ids are unique within a namespace, not across
them, so a value whose namespace this client cannot open must stay
undecryptable rather than resolve to another namespace's key.
Constructors
Properties
-
currentKids
→ Iterable<
String> -
The ids of every CK that is current in some
(owner, namespace).no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
current(
String owner, String namespace) → ContentKey? -
The CK new writes in
(owner, namespace)encrypt under, or null if no CK has been conveyed for that namespace yet. -
currentCutAt(
String owner, String namespace) → DateTime? -
When the current CK for
(owner, namespace)was cut, or null if there is no current CK. -
currentNskeyKid(
String owner, String namespace) → String? -
The nskey generation the current CK was conveyed to, or null if there is
no current CK for
(owner, namespace). -
currentOwnNskeyKid(
String owner, String namespace) → String? - The sender's own nskey generation the current CK's sibling copy was sealed to, or null if it has none or there is no current CK.
-
currentOwnNskeyKidsIn(
String namespace) → Iterable< String> -
The own generations the current CKs in
namespacerest on, toward every destination. -
evict(
String owner, String namespace, String ckKid) → void - Drop a superseded CK, after which data written under it can no longer be read here.
-
get(
String owner, String namespace, String ckKid) → ContentKey? -
The CK cited by
ckKid, or null on a cache miss. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
put(
String owner, String namespace, ContentKey ck) → void -
Cache
ckfor(owner, namespace)so values citing itsckKidresolve. -
putAsCurrent(
String owner, String namespace, ContentKey ck, String nskeyKid, {String? ownNskeyKid, DateTime? cutAt}) → void -
Cache
ckand make it the key new writes in(owner, namespace)encrypt under, recording the nskey generation it was conveyed to. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited