Android.Security.Keystore Namespace

Provides Android Keystore key settings, key metadata, and key-operation exceptions.

Classes

Name Description
BackendBusyException

Indicates a transient error that prevented a key operation from being created.

KeyExpiredException

Indicates that a cryptographic operation failed because the employed key's validity end date is in the past.

KeyGenParameterSpec

AlgorithmParameterSpec for initializing a KeyPairGenerator or a KeyGenerator of the Android Keystore system.

KeyGenParameterSpec.Builder

Builder of KeyGenParameterSpec instances.

KeyInfo

Information about a key from the Android Keystore system.

KeyNotYetValidException

Indicates that a cryptographic operation failed because the employed key's validity start date is in the future.

KeyPermanentlyInvalidatedException

Indicates that the key can no longer be used because it has been permanently invalidated.

KeyProperties

Properties of Android Keystore keys.

KeyProtection

Specification of how a key or key pair is secured when imported into the Android Keystore system.

KeyProtection.Builder

Builder of KeyProtection instances.

KeyStoreManager

This class provides methods for interacting with keys stored within the Android Keystore.

SecureKeyImportUnavailableException

Indicates that the Keystore does not support securely importing wrapped keys.

StrongBoxUnavailableException

Indicates that an operation could not be performed because the requested security hardware is not available.

UserNotAuthenticatedException

Indicates that a cryptographic operation could not be performed because the user has not been authenticated recently enough.

UserPresenceUnavailableException

Indicates the condition that a proof of user-presence was requested but this proof was not presented.

WrappedKeyEntry

An Entry that holds a wrapped key.

Enums

Name Description
KeyPropertiesAuthType

Specifies the authentication types accepted for a keystore key.

KeyStoreOrigin

Identifies how a key entered Android Keystore.

KeyStorePurpose

Specifies the operations for which a keystore key is authorized.

KeyStoreSecurityLevel

Identifies the reported protection level of a keystore key.

Remarks

Use KeyGenParameterSpec when generating keys and KeyProtection when importing keys. KeyInfo describes the properties and authorizations of a stored key.