Payload class
The maintainer issues a wipe to a Companion or Service. The target is expected to destroy its local cache and (depending on scope) its device-local key material. The action is best-effort — a compromised device may silently drop the wipe — so the maintainer additionally revokes ACL access and rotates the device's cache-key derivation root, so that defence in depth means a non-compliant device is still neutralised.
Constructors
- Payload({required String deviceId, required PayloadScope scope, required String reason, String? issuedAt, Ext? ext})
-
const
-
Payload.fromJson(Map<
String, dynamic> json) -
Read this payload from a decoded JSON object.
factory
Properties
- deviceId → String
-
final
- ext → Ext?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- issuedAt → String?
-
Wipe-issuance timestamp; identical to the document's
issuedAt, repeated here so the body is self-contained for offline-queued delivery.final - reason → String
-
Human-readable reason. Required (not optional) because every wipe is consequential
and the audit log must capture intent.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scope → PayloadScope
-
How aggressively the target should wipe: -
cache— discard the encrypted vault cache; consumer can re-sync with valid creds. -cacheAndKeys— discard cache + device-local key material; consumer must re-onboard. -full—cacheAndKeys+ clear all extension/app storage + revoke OS credential-provider registration where APIs permit.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serialize to a JSON-encodable map, omitting absent members.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited