Companion

Functions

Link copied to clipboard

Returns an AppleKeychainSigningKey for the given algorithm and keyId if a matching key already exists in the Keychain, or null if no such key is found.

Link copied to clipboard
fun getOrCreateInstance(algorithm: SigningAlgorithm, keyId: String?, keySizeInBits: Int = 2048, secureHardwarePreference: SecureHardwarePreference = SecureHardwarePreference.None): AppleKeychainSigningKey

Returns an AppleKeychainSigningKey for the given algorithm and keyId, generating a new key if one does not already exist.