EncryptedProtoSerializer

class EncryptedProtoSerializer<T : Any>(inner: ProtoOkioSerializer<T>, cipher: Cipher, options: EncryptedStoreOptions = EncryptedStoreOptions()) : OkioSerializer<T>

Constructors

Link copied to clipboard
constructor(inner: ProtoOkioSerializer<T>, cipher: Cipher, options: EncryptedStoreOptions = EncryptedStoreOptions())
constructor(inner: ProtoOkioSerializer<T>, cipher: Cipher, associatedData: ByteArray, legacyAssociatedData: ByteArray? = null, allowPlaintextRead: Boolean = false)

Properties

Link copied to clipboard
open override val defaultValue: T

Functions

Link copied to clipboard
open suspend override fun readFrom(source: BufferedSource): T
Link copied to clipboard
open suspend override fun writeTo(t: T, sink: BufferedSink)