KeyManager

interface KeyManager

Defines functions the key manager must expose.

Inheritors

Functions

Link copied to clipboard
abstract fun decrypt(instance: String, sealed: ByteArray): ByteArray?

Decrypt sealed with instance's keys.

Link copied to clipboard
abstract fun delete(instance: String)

Delete key set for instance.

Link copied to clipboard
abstract fun exists(instance: String): Boolean

Check if the key set for instance exists and is valid.

Link copied to clipboard
abstract fun generate(instance: String)

Generate a new key pair and auth secret for instance.

Link copied to clipboard
abstract fun getPublicKeySet(instance: String): PublicKeySet?

Get PublicKeySet for instance. Encoded to be shared to the application server.