CipherParameters

Reads and writes the parameter values of a Cipher. See CipherConfiguration for how prefix affects whether a read or write is transient or permanent.

Functions

Link copied to clipboard
open operator fun <Value : Any, Param : SqliteMcConfigCipherParam<Cipher, Value>> get(param: Param): Value

Returns the transient value of param.

Returns the value of param.

Link copied to clipboard
fun CipherParameters<SqliteMcCipher.Dynamic>.get(param: String, prefix: SqliteMcConfigParamPrefix.ReadWrite = SqliteMcConfigParamPrefix.None): Int

Returns the transient value of the dynamic cipher parameter named param.

Link copied to clipboard
open operator fun <Value : Any, Param : SqliteMcConfigCipherParam<Cipher, Value>> set(param: Param, value: Value)

Sets param to value permanently.

Sets param to value and returns the resulting parameter value.

Link copied to clipboard
fun CipherParameters<SqliteMcCipher.Dynamic>.set(param: String, value: Int, prefix: SqliteMcConfigParamPrefix.ReadWrite = SqliteMcConfigParamPrefix.Default)

Sets the dynamic cipher parameter named param to value, permanently.