EncryptedProtoSerializer
class EncryptedProtoSerializer<T : Any>(inner: ProtoOkioSerializer<T>, cipher: Cipher, options: EncryptedStoreOptions = EncryptedStoreOptions()) : OkioSerializer<T>
AEAD-encrypted OkioSerializer wrapping ProtoOkioSerializer with the SVBLENC1 v1 envelope.
Fails closed with CorruptionException on unencrypted payloads unless EncryptedStoreOptions.allowPlaintextRead is explicitly enabled for migration.
Constructors
Link copied to clipboard
constructor(inner: ProtoOkioSerializer<T>, cipher: Cipher, options: EncryptedStoreOptions = EncryptedStoreOptions())