NskeyRotation class

Rotates a namespace's nskey keypair, and composes that with revoking an enrollment.

The post-compromise lever and not the forward-secrecy one — it cuts an enrollment off from future data at one conveyance per surviving enrollment, whereas making already-written data unreadable is the content-key lever's O(1) job — and it is never automatic, never recovers a lost generation, and needs the rw on the namespace that the atServer already enforces on the advertisement write.

Constructors

NskeyRotation({required AtClient atClient, required PublishedNskeyKeyRing ring, required NskeyPrivateFiling privateFiling, required PairwiseSecretSharing sharing})
NskeyRotation.forClient(AtClient atClient, {NskeyPrivateFiling? privateFiling, PairwiseSecretSharing? sharing})
Wires a rotation for atClient from what the client already holds — its key storage and its secret-sharing substrate.
factory

Properties

atClient → AtClient
final
hashCode → int
The hash code for this object.
no setterinherited
privateFiling → NskeyPrivateFiling
Where the successor private is filed before it is published, and read back from to convey.
final
ring → PublishedNskeyKeyRing
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sharing → PairwiseSecretSharing
Carries the successor private to the surviving enrollments.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
revokeEnrollmentAndRotate(String enrollmentId, {Iterable<String>? namespaces}) → Future<List<NskeyRotationOutcome>>
Revokes enrollmentId, then rotates every namespace it could read, excluding it, and returns one outcome per namespace rotated.
rotateNamespaceKey(String namespace, {Set<String> excludeEnrollmentIds = const {}}) → Future<NskeyRotationOutcome>
Rotates namespace onto a fresh nskey generation and conveys the successor private to every enrollment authorised for it, minus excludeEnrollmentIds.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

isRotatable(String namespace) → bool
Whether namespace names something with an nskey to rotate.