Stay organized with collections
Save and categorize content based on your preferences.
android.security
Interfaces
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.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# android.security\n================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/security/package-summary \"View this page in Java\")\n\nInterfaces\n----------\n\n|-----------------------------------------------------------------------------------|--------------------------------------------------------|\n| [KeyChainAliasCallback](/reference/kotlin/android/security/KeyChainAliasCallback) | The KeyChainAliasCallback is the callback for android. |\n\nClasses\n-------\n\n|---------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [AppUriAuthenticationPolicy](/reference/kotlin/android/security/AppUriAuthenticationPolicy) | The app-URI authentication policy is set by the credential management app. |\n| [AttestedKeyPair](/reference/kotlin/android/security/AttestedKeyPair) | The `AttestedKeyPair` class contains a `KeyPair` instance of keys generated by Keystore and owned by KeyChain, as well as an attestation record for the key. |\n| [ConfirmationCallback](/reference/kotlin/android/security/ConfirmationCallback) | Callback class used when signaling that a prompt is no longer being presented. |\n| [ConfirmationPrompt](/reference/kotlin/android/security/ConfirmationPrompt) | Class used for displaying confirmation prompts. |\n| [FileIntegrityManager](/reference/kotlin/android/security/FileIntegrityManager) | This class provides access to file integrity related operations. |\n| [KeyChain](/reference/kotlin/android/security/KeyChain) | The `KeyChain` class provides access to private keys and their corresponding certificate chains in credential storage. |\n| [KeyPairGeneratorSpec](/reference/kotlin/android/security/KeyPairGeneratorSpec) | This provides the required parameters needed for initializing the `KeyPairGenerator` that works with [Android KeyStore facility](https://developer.android.com/training/articles/keystore.html). |\n| [KeyStoreParameter](/reference/kotlin/android/security/KeyStoreParameter) | This provides the optional parameters that can be specified for `KeyStore` entries that work with [Android KeyStore facility](https://developer.android.com/training/articles/keystore.html). |\n| [NetworkSecurityPolicy](/reference/kotlin/android/security/NetworkSecurityPolicy) | Network security policy. |\n\nExceptions\n----------\n\n|---------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------|\n| [ConfirmationAlreadyPresentingException](/reference/kotlin/android/security/ConfirmationAlreadyPresentingException) | This exception is thrown when presenting a prompt fails because another prompt is already being presented. |\n| [ConfirmationNotAvailableException](/reference/kotlin/android/security/ConfirmationNotAvailableException) | This exception is thrown when presenting a prompt fails because the environment lacks facilities for showing confirmations. |\n| [KeyChainException](/reference/kotlin/android/security/KeyChainException) | Thrown on problems accessing the [KeyChain](/reference/kotlin/android/security/KeyChain). |\n| [KeyStoreException](/reference/kotlin/android/security/KeyStoreException) | Exception containing information about the failure at the Keystore / KeyMint layer while generating or using a key. |"]]