getPublicKey

suspend fun getPublicKey(alias: String): PublicKey?

Retrieves a public key from the Keystore.

Return

The public key or null if not found. If the key was permanently invalidated (e.g., user changed biometrics/PIN), the key is deleted and null is returned.

Parameters

alias

The alias for the key.