open class GeneralSecurityException : Exception
| kotlin.Any | |||
| ↳ | kotlin.Throwable | ||
| ↳ | java.lang.Exception | ||
| ↳ | java.security.GeneralSecurityException | ||
Known Direct Subclasses
BadPaddingException, CRLException, CertPathBuilderException, CertPathValidatorException, CertStoreException, CertificateException, DigestException, ExemptionMechanismException, IllegalBlockSizeException, InvalidAlgorithmParameterException, InvalidKeySpecException, InvalidParameterSpecException, and 9 others.
| 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 |
| 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 |
| 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. |
Known Indirect Subclasses
AEADBadTagException, CertificateEncodingException, CertificateExpiredException, CertificateNotYetValidException, CertificateParsingException, CertificateRevokedException, InvalidKeyException, KeyExpiredException, KeyManagementException, KeyNotYetValidException, KeyPermanentlyInvalidatedException, UnrecoverableKeyException, and 2 others.
| AEADBadTagException |
This exception is thrown when a |
| 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 |
|
|
Creates a |
|
Public constructors
GeneralSecurityException
GeneralSecurityException()
Constructs a GeneralSecurityException with no detail message.
GeneralSecurityException
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
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
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.) |