CipherManager

Registers and looks up SQLite Multiple Ciphers dynamic ciphers, on top of the ciphers SQLite Multiple Ciphers already provides.

Unless documented otherwise, every member throws IllegalStateException once the owning ksqlite.kapi.SQLite instance is closed.

Properties

Link copied to clipboard

Configuration shared by every connection.

Link copied to clipboard
abstract val count: Int

Number of currently registered ciphers, builtin and dynamic.

Link copied to clipboard

Creates and destroys virtual file systems wrapped for encryption.

Functions

Link copied to clipboard
abstract fun getIndex(cipher: SqliteMcCipher): Int

Returns the 1-based index of cipher among the registered ciphers. See SqliteMcCodecType for the builtin ciphers.

Link copied to clipboard

Returns the 1-based index of the dynamic cipher named name among the registered ciphers.

Link copied to clipboard
abstract fun getName(index: Int): String

Returns the name of the cipher at the 1-based index.

Link copied to clipboard
abstract fun <Cipher : DynamicCipher> register(name: String, factory: DynamicCipher.Factory<Cipher>, makeDefault: Boolean = true)

Registers a dynamic cipher under name, created through factory whenever a connection actually derives a key with it.