added in API level 14

android.security

Provides access to a few facilities of the Android security subsystems.

Interfaces

KeyChainAliasCallback The KeyChainAliasCallback is the callback for choosePrivateKeyAlias(Activity, KeyChainAliasCallback, String[], Principal[], Uri, String)

Classes

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. 
ConfirmationCallback Callback class used when signaling that a prompt is no longer being presented. 
ConfirmationPrompt Class used for displaying confirmation prompts. 
ConfirmationPrompt.Builder A builder that collects arguments, to be shown on the system-provided confirmation prompt. 
KeyChain The KeyChain class provides access to private keys and their corresponding certificate chains in credential storage. 
KeyPairGeneratorSpec This class was deprecated in API level 23. Use KeyGenParameterSpec instead.  
KeyPairGeneratorSpec.Builder This class was deprecated in API level 23. Use KeyGenParameterSpec.Builder instead.  
KeyStoreParameter This class was deprecated in API level 23. Use KeyProtection instead.  
KeyStoreParameter.Builder This class was deprecated in API level 23. Use KeyProtection.Builder instead.  
NetworkSecurityPolicy Network security policy. 

Exceptions

ConfirmationAlreadyPresentingException This exception is thrown when presenting a prompt fails because another prompt is already being presented. 
ConfirmationNotAvailableException This exception is thrown when presenting a prompt fails because the the environment lacks facilities for showing confirmations. 
KeyChainException Thrown on problems accessing the KeyChain