KeyStoreHelper

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
suspend fun deleteKey(alias: String): Boolean
Link copied to clipboard
suspend fun expiredTokenUnlockAliases(aliasPrefix: String, nowEpochSeconds: Long): List<String>

Returns token-unlock key aliases whose namespace contains an elapsed expiration time.

Link copied to clipboard

Generates a P-256 key pair directly in AndroidKeyStore under alias.

Link copied to clipboard
suspend fun getPrivateKey(alias: String): PrivateKey?

Retrieves a private key from the Keystore on a background thread.

Link copied to clipboard
suspend fun getPublicKey(alias: String): PublicKey?

Retrieves a public key from the Keystore.