| Package | Description | 
|---|---|
| java.security | Provides the classes and interfaces for the security framework. | 
| java.security.cert | Provides classes and interfaces for parsing and managing
 certificates, certificate revocation lists (CRLs), and
 certification paths. | 
| java.security.spec | Provides classes and interfaces for key specifications and algorithm
 parameter specifications. | 
| javax.crypto | Provides the classes and interfaces for cryptographic operations. | 
| javax.security.auth.login | This package provides a pluggable authentication framework. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | DigestExceptionThis is the generic Message Digest exception. | 
| class  | InvalidAlgorithmParameterExceptionThis is the exception for invalid or inappropriate algorithm parameters. | 
| class  | InvalidKeyExceptionThis is the exception for invalid Keys (invalid encoding, wrong
 length, uninitialized, etc). | 
| class  | KeyExceptionThis is the basic key exception. | 
| class  | KeyManagementExceptionThis is the general key management exception for all operations
 dealing with key management. | 
| class  | KeyStoreExceptionThis is the generic KeyStore exception. | 
| class  | NoSuchAlgorithmExceptionThis exception is thrown when a particular cryptographic algorithm is
 requested but is not available in the environment. | 
| class  | NoSuchProviderExceptionThis exception is thrown when a particular security provider is
 requested but is not available in the environment. | 
| class  | SignatureExceptionThis is the generic Signature exception. | 
| class  | UnrecoverableEntryExceptionThis exception is thrown if an entry in the keystore cannot be recovered. | 
| class  | UnrecoverableKeyExceptionThis exception is thrown if a key in the keystore cannot be recovered. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | CertificateEncodingExceptionCertificate Encoding Exception. | 
| class  | CertificateExceptionThis exception indicates one of a variety of certificate problems. | 
| class  | CertificateExpiredExceptionCertificate Expired Exception. | 
| class  | CertificateNotYetValidExceptionCertificate is not yet valid exception. | 
| class  | CertificateParsingExceptionCertificate Parsing Exception. | 
| class  | CertificateRevokedExceptionAn exception that indicates an X.509 certificate is revoked. | 
| class  | CertPathBuilderExceptionAn exception indicating one of a variety of problems encountered when
 building a certification path with a  CertPathBuilder. | 
| class  | CertPathValidatorExceptionAn exception indicating one of a variety of problems encountered when
 validating a certification path. | 
| class  | CertStoreExceptionAn exception indicating one of a variety of problems retrieving
 certificates and CRLs from a  CertStore. | 
| class  | CRLExceptionCRL (Certificate Revocation List) Exception. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | InvalidKeySpecExceptionThis is the exception for invalid key specifications. | 
| class  | InvalidParameterSpecExceptionThis is the exception for invalid parameter specifications. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | AEADBadTagExceptionThis exception is thrown when a  Cipheroperating in
 an AEAD mode (such as GCM/CCM) is unable to verify the supplied
 authentication tag. | 
| class  | BadPaddingExceptionThis exception is thrown when a particular padding mechanism is
 expected for the input data but the data is not padded properly. | 
| class  | ExemptionMechanismExceptionThis is the generic ExemptionMechanism exception. | 
| class  | IllegalBlockSizeExceptionThis exception is thrown when the length of data provided to a block
 cipher is incorrect, i.e., does not match the block size of the cipher. | 
| class  | NoSuchPaddingExceptionThis exception is thrown when a particular padding mechanism is
 requested but is not available in the environment. | 
| class  | ShortBufferExceptionThis exception is thrown when an output buffer provided by the user
 is too short to hold the operation result. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | AccountExceptionA generic account exception. | 
| class  | AccountExpiredExceptionSignals that a user account has expired. | 
| class  | AccountLockedExceptionSignals that an account was locked. | 
| class  | AccountNotFoundExceptionSignals that an account was not found. | 
| class  | CredentialExceptionA generic credential exception. | 
| class  | CredentialExpiredExceptionSignals that a  Credentialhas expired. | 
| class  | CredentialNotFoundExceptionSignals that a credential was not found. | 
| class  | FailedLoginExceptionSignals that user authentication failed. | 
| class  | LoginExceptionThis is the basic login exception. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2015, Oracle and/or its affiliates.  All rights reserved.