criollo-kmp-foundation
Toggle table of contents
0.2.0
common
Target filter
common
Switch theme
Search in API
Skip to content
criollo-kmp-foundation
serializers
/
io.github.jdbenitez94.criollo.kmp.foundation.kryptostore.serializers
/
EncryptedPreferencesSerializer
Encrypted
Preferences
Serializer
class
EncryptedPreferencesSerializer
(
cipher
:
Cipher
,
options
:
EncryptedStoreOptions
=
EncryptedStoreOptions()
)
:
OkioSerializer
<
Preferences
>
Members
Constructors
Encrypted
Preferences
Serializer
Link copied to clipboard
constructor
(
cipher
:
Cipher
,
options
:
EncryptedStoreOptions
=
EncryptedStoreOptions()
)
constructor
(
cipher
:
Cipher
,
associatedData
:
ByteArray
,
legacyAssociatedData
:
ByteArray
?
=
null
,
allowPlaintextRead
:
Boolean
=
false
)
Properties
default
Value
Link copied to clipboard
open
override
val
defaultValue
:
Preferences
Functions
read
From
Link copied to clipboard
open
suspend override
fun
readFrom
(
source
:
BufferedSource
)
:
Preferences
write
To
Link copied to clipboard
open
suspend override
fun
writeTo
(
t
:
Preferences
,
sink
:
BufferedSink
)