Stay organized with collections
Save and categorize content based on your preferences.
android.security.keystore
Classes
Exceptions
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# android.security.keystore\n=========================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/security/keystore/package-summary \"View this page in Java\")\n\nClasses\n-------\n\n|----------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [KeyGenParameterSpec](/reference/kotlin/android/security/keystore/KeyGenParameterSpec) | [AlgorithmParameterSpec](../../../java/security/spec/AlgorithmParameterSpec.html#) for initializing a [KeyPairGenerator](../../../java/security/KeyPairGenerator.html#) or a [KeyGenerator](../../../javax/crypto/KeyGenerator.html#) of the [Android Keystore system](https://developer.android.com/training/articles/keystore.html). |\n| [KeyInfo](/reference/kotlin/android/security/keystore/KeyInfo) | Information about a key from the [Android Keystore system](https://developer.android.com/training/articles/keystore.html). |\n| [KeyProperties](/reference/kotlin/android/security/keystore/KeyProperties) | Properties of [Android Keystore](https://developer.android.com/training/articles/keystore.html) keys. |\n| [KeyProtection](/reference/kotlin/android/security/keystore/KeyProtection) | Specification of how a key or key pair is secured when imported into the [Android Keystore system](https://developer.android.com/training/articles/keystore.html). |\n| [KeyStoreManager](/reference/kotlin/android/security/keystore/KeyStoreManager) | This class provides methods for interacting with keys stored within the [Android Keystore](../../../privacy-and-security/keystore). |\n| [WrappedKeyEntry](/reference/kotlin/android/security/keystore/WrappedKeyEntry) | An [Entry](../../../java/security/KeyStore.Entry.html#) that holds a wrapped key. |\n\nExceptions\n----------\n\n|------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------|\n| [BackendBusyException](/reference/kotlin/android/security/keystore/BackendBusyException) | Indicates a transient error that prevented a key operation from being created. |\n| [KeyExpiredException](/reference/kotlin/android/security/keystore/KeyExpiredException) | Indicates that a cryptographic operation failed because the employed key's validity end date is in the past. |\n| [KeyNotYetValidException](/reference/kotlin/android/security/keystore/KeyNotYetValidException) | Indicates that a cryptographic operation failed because the employed key's validity start date is in the future. |\n| [KeyPermanentlyInvalidatedException](/reference/kotlin/android/security/keystore/KeyPermanentlyInvalidatedException) | Indicates that the key can no longer be used because it has been permanently invalidated. |\n| [SecureKeyImportUnavailableException](/reference/kotlin/android/security/keystore/SecureKeyImportUnavailableException) | Indicates that the Keystore does not support securely importing wrapped keys. |\n| [StrongBoxUnavailableException](/reference/kotlin/android/security/keystore/StrongBoxUnavailableException) | Indicates that an operation could not be performed because the requested security hardware is not available. |\n| [UserNotAuthenticatedException](/reference/kotlin/android/security/keystore/UserNotAuthenticatedException) | Indicates that a cryptographic operation could not be performed because the user has not been authenticated recently enough. |\n| [UserPresenceUnavailableException](/reference/kotlin/android/security/keystore/UserPresenceUnavailableException) | Indicates the condition that a proof of user-presence was requested but this proof was not presented. |"]]