TakCertificateStore

Encrypted per-install storage for TakCertificateMaterial.

Platform implementations should use secure storage (EncryptedSharedPreferences on Android, the desktop keystore cipher on JVM). The material is read without user interaction so the server can start in the background.

Functions

Link copied to clipboard
abstract fun clear()

Deletes the stored material.

Link copied to clipboard
abstract fun load(): TakCertificateMaterial?

Returns the stored material, or null when none has been generated yet (or it cannot be decrypted).

Link copied to clipboard
abstract fun save(material: TakCertificateMaterial)

Persists material, replacing any previous set.