Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
class EncryptedPreferencesSerializer(cipher: Cipher, options: EncryptedStoreOptions = EncryptedStoreOptions()) : OkioSerializer<Preferences>
Link copied to clipboard
class EncryptedProtoSerializer<T : Any>(inner: ProtoOkioSerializer<T>, cipher: Cipher, options: EncryptedStoreOptions = EncryptedStoreOptions()) : OkioSerializer<T>
Link copied to clipboard

Options for encrypted DataStore serializers.

Link copied to clipboard
class ProtoOkioSerializer<T : Any>(kSerializer: KSerializer<T>, val defaultValue: T) : OkioSerializer<T>

Properties

Link copied to clipboard
val kryptostoreFileSystem: FileSystem?

Platform Okio FileSystem for quarantine / file-backed stores; null on web.

Functions

Link copied to clipboard
fun deriveStoreAssociatedData(storeName: String, schemaVersion: Int): ByteArray
Link copied to clipboard
fun <T> failClosedCorruptionHandler(producePath: () -> Path, fileSystem: () -> FileSystem? = { kryptostoreFileSystem }): ReplaceFileCorruptionHandler<T>

Fail-closed corruption handler: quarantine the unreadable file as *.corrupt and rethrow. Defaults are never written automatically — recovery requires an explicit user action.