AndroidKeystoreSigningKeyFactory

Low-level factory that generates and registers signing keys in the Android Keystore.

Most callers should use AndroidKeyStoreSigningKey.getOrCreateInstance instead, which wraps this factory and handles existence checks automatically.

Functions

Link copied to clipboard
fun create(algorithm: SigningAlgorithm, keyId: String, keySizeInBits: Int = 2048, strongBoxPreference: SecureHardwarePreference = SecureHardwarePreference.None)

Generates a new signing key for algorithm and stores it in the Android Keystore under the alias keyId.