# Uses of Class
java.security.GeneralSecurityException

Packages that use GeneralSecurityException
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.

## Uses of GeneralSecurityException in java.security

Subclasses of GeneralSecurityException in java.security
Modifier and Type
Class
Description
`class`
`DigestException`
This is the generic Message Digest exception.
`class`
`InvalidAlgorithmParameterException`
This is the exception for invalid or inappropriate algorithm parameters.
`class`
`InvalidKeyException`
This is the exception for invalid Keys (invalid encoding, wrong length, uninitialized, etc.).
`class`
`KeyException`
This is the basic key exception.
`class`
`KeyManagementException`
This is the general key management exception for all operations dealing with key management.
`class`
`KeyStoreException`
This is the generic KeyStore exception.
`class`
`NoSuchAlgorithmException`
This exception is thrown when a particular cryptographic algorithm is requested but is not available in the environment.
`class`
`NoSuchProviderException`
This exception is thrown when a particular security provider is requested but is not available in the environment.
`class`
`SignatureException`
This is the generic Signature exception.
`class`
`UnrecoverableEntryException`
This exception is thrown if an entry in the keystore cannot be recovered.
`class`
`UnrecoverableKeyException`
This exception is thrown if a key in the keystore cannot be recovered.

## Uses of GeneralSecurityException in java.security.cert

Subclasses of GeneralSecurityException in java.security.cert
Modifier and Type
Class
Description
`class`
`CertificateEncodingException`
Certificate Encoding Exception.
`class`
`CertificateException`
This exception indicates one of a variety of certificate problems.
`class`
`CertificateExpiredException`
Certificate Expired Exception.
`class`
`CertificateNotYetValidException`
Certificate is not yet valid exception.
`class`
`CertificateParsingException`
Certificate Parsing Exception.
`class`
`CertificateRevokedException`
An exception that indicates an X.509 certificate is revoked.
`class`
`CertPathBuilderException`
An exception indicating one of a variety of problems encountered when building a certification path with a `CertPathBuilder`.
`class`
`CertPathValidatorException`
An exception indicating one of a variety of problems encountered when validating a certification path.
`class`
`CertStoreException`
An exception indicating one of a variety of problems retrieving certificates and CRLs from a `CertStore`.
`class`
`CRLException`
CRL (Certificate Revocation List) Exception.

## Uses of GeneralSecurityException in java.security.spec

Subclasses of GeneralSecurityException in java.security.spec
Modifier and Type
Class
Description
`class`
`InvalidKeySpecException`
This is the exception for invalid key specifications.
`class`
`InvalidParameterSpecException`
This is the exception for invalid parameter specifications.

## Uses of GeneralSecurityException in javax.crypto

Subclasses of GeneralSecurityException in javax.crypto
Modifier and Type
Class
Description
`class`
`AEADBadTagException`
This exception is thrown when a `Cipher` operating in an AEAD mode (such as GCM/CCM) is unable to verify the supplied authentication tag.
`class`
`BadPaddingException`
This exception is thrown when a particular padding mechanism is expected for the input data but the data is not padded properly.
`class`
`DecapsulateException`
An exception that is thrown by the `KEM.Decapsulator.decapsulate(byte[])` method to denote an error during decapsulation.
`class`
`ExemptionMechanismException`
This is the generic ExemptionMechanism exception.
`class`
`IllegalBlockSizeException`
This 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`
`NoSuchPaddingException`
This exception is thrown when a particular padding mechanism is requested but is not available in the environment.
`class`
`ShortBufferException`
This exception is thrown when an output buffer provided by the user is too short to hold the operation result.

## Uses of GeneralSecurityException in javax.security.auth.login

Subclasses of GeneralSecurityException in javax.security.auth.login
Modifier and Type
Class
Description
`class`
`AccountException`
A generic account exception.
`class`
`AccountExpiredException`
Signals that a user account has expired.
`class`
`AccountLockedException`
Signals that an account was locked.
`class`
`AccountNotFoundException`
Signals that an account was not found.
`class`
`CredentialException`
A generic credential exception.
`class`
`CredentialExpiredException`
Signals that a `Credential` has expired.
`class`
`CredentialNotFoundException`
Signals that a credential was not found.
`class`
`FailedLoginException`
Signals that user authentication failed.
`class`
`LoginException`
This is the basic login exception.