Added in API level 1

GeneralSecurityException

open class GeneralSecurityException : Exception
BadPaddingException

This exception is thrown when a particular padding mechanism is expected for the input data but the data is not padded properly.

CRLException

CRL (Certificate Revocation List) Exception.

CertPathBuilderException

An exception indicating one of a variety of problems encountered when building a certification path with a CertPathBuilder.

CertPathValidatorException

An exception indicating one of a variety of problems encountered when validating a certification path.

CertStoreException

An exception indicating one of a variety of problems retrieving certificates and CRLs from a CertStore.

CertificateException

This exception indicates one of a variety of certificate problems.

DigestException

This is the generic Message Digest exception.

ExemptionMechanismException

This is the generic ExemptionMechanism exception.

IllegalBlockSizeException

This exception is thrown when the length of data provided to a block cipher is incorrect, i.

InvalidAlgorithmParameterException

This is the exception for invalid or inappropriate algorithm parameters.

InvalidKeySpecException

This is the exception for invalid key specifications.

InvalidParameterSpecException

This is the exception for invalid parameter specifications.

KeyException

This is the basic key exception.

KeyStoreException

This is the generic KeyStore exception.

LoginException

This is the basic login exception.

NoSuchAlgorithmException

This exception is thrown when a particular cryptographic algorithm is requested but is not available in the environment.

NoSuchPaddingException

This exception is thrown when a particular padding mechanism is requested but is not available in the environment.

NoSuchProviderException

This exception is thrown when a particular security provider is requested but is not available in the environment.

ShortBufferException

This exception is thrown when an output buffer provided by the user is too short to hold the operation result.

SignatureException

This is the generic Signature exception.

UnrecoverableEntryException

This exception is thrown if an entry in the keystore cannot be recovered.

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.

CertificateEncodingException

Certificate Encoding Exception.

CertificateExpiredException

Certificate Expired Exception.

CertificateNotYetValidException

Certificate is not yet valid exception.

CertificateParsingException

Certificate Parsing Exception.

CertificateRevokedException

An exception that indicates an X.

InvalidKeyException

This is the exception for invalid Keys (invalid encoding, wrong length, uninitialized, etc).

KeyExpiredException

Indicates that a cryptographic operation failed because the employed key's validity end date is in the past.

KeyManagementException

This is the general key management exception for all operations dealing with key management.

KeyNotYetValidException

Indicates that a cryptographic operation failed because the employed key's validity start date is in the future.

KeyPermanentlyInvalidatedException

Indicates that the key can no longer be used because it has been permanently invalidated.

UnrecoverableKeyException

This exception is thrown if a key in the keystore cannot be recovered.

UserNotAuthenticatedException

Indicates that a cryptographic operation could not be performed because the user has not been authenticated recently enough.

UserPresenceUnavailableException

Indicates the condition that a proof of user-presence was requested but this proof was not presented.

The GeneralSecurityException class is a generic security exception class that provides type safety for all the security-related exception classes that extend from it.

Summary

Public constructors

Constructs a GeneralSecurityException with no detail message.

Constructs a GeneralSecurityException with the specified detail message.

Creates a GeneralSecurityException with the specified detail message and cause.

Creates a GeneralSecurityException with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).

Public constructors

GeneralSecurityException

Added in API level 1
GeneralSecurityException()

Constructs a GeneralSecurityException with no detail message.

GeneralSecurityException

Added in API level 1
GeneralSecurityException(msg: String!)

Constructs a GeneralSecurityException with the specified detail message. A detail message is a String that describes this particular exception.

Parameters
msg String!: the detail message.

GeneralSecurityException

Added in API level 1
GeneralSecurityException(
    message: String!,
    cause: Throwable!)

Creates a GeneralSecurityException with the specified detail message and cause.

Parameters
message String!: the detail message (which is saved for later retrieval by the getMessage() method).
cause Throwable!: the cause (which is saved for later retrieval by the getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)

GeneralSecurityException

Added in API level 1
GeneralSecurityException(cause: Throwable!)

Creates a GeneralSecurityException with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).

Parameters
cause Throwable!: the cause (which is saved for later retrieval by the getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)