OfflineEncryptionStatus class

The fixed CONTRACT section 4 status shape.

The single most useful support signal this carries is enabled: true with cipherAvailable: false -- the integrator who believes they turned encryption on and did not. On Flutter that combination is especially reachable, because build-hook user-defines are read from the root package only (spike S2), so an integrator who never added the hooks: stanza to their own app pubspec lands here.

Never carries the key, any prefix of it, or its length.

Constructors

OfflineEncryptionStatus({required bool enabled, required OfflineAtRest atRest, required OfflineKeyStorage keyStorage, required bool cipherAvailable, String? cipher, String? leakage})
const

Properties

atRest → OfflineAtRest
The Coverage tier actually achieved.
final
cipher → String?
e.g. AES-256-CBC/HMAC-SHA512, or null when nothing is encrypted.
final
cipherAvailable → bool
Whether the cipher engine is actually present and linked.
final
enabled → bool
What was configured -- deliberately not what was achieved. Compare against cipherAvailable and atRest to detect a silent downgrade.
final
hashCode → int
The hash code for this object.
no setterinherited
keyStorage → OfflineKeyStorage
The Key protection tier.
final
leakage → String?
The declared readable-metadata set for a COV-CONTENT runtime.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, Object?>
UPPER_SNAKE wire form, key-for-key identical across SDKs.
toString() → String
A string representation of this object.
override

Operators

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

Constants

off → const OfflineEncryptionStatus
The disabled/never-ran status. Also the correct answer for a EncryptionFailureBehavior.plaintextFallback cache, which must report atRest: NONE and cipherAvailable: false.