java.lang.Object | |||||
↳ | java.lang.Throwable | ||||
↳ | java.lang.Exception | ||||
↳ | java.lang.RuntimeException | ||||
↳ | java.lang.SecurityException | ||||
↳ | sun.security.x509.CertException |
This class is deprecated.
use one of Exceptions defined in the java.security.cert
package.
CertException indicates one of a variety of certificate problems.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | err_CONSTRUCTION | Indicates an error constructing a certificate or certificate chain. | |||||||||
int | err_ENCODING | Indicates a problem with the certificate encoding | |||||||||
int | err_INVALID_FORMAT | Indicates a problem with the certificate format | |||||||||
int | err_INVALID_PUBLIC_KEY | Indicates a problem with the public key | |||||||||
int | err_INVALID_VERSION | Indicates a problem with the certificate version | |||||||||
int | verf_CA_UNTRUSTED | Indicates that a certificate authority in the certification chain is not trusted. | |||||||||
int | verf_CHAIN_LENGTH | Indicates that the certification chain is too long. | |||||||||
int | verf_INVALID_EXPIRED | Indicates that the certificate has expired and so is not valid. | |||||||||
int | verf_INVALID_NOTBEFORE | Indicates that the certificate is not yet valid. | |||||||||
int | verf_INVALID_REVOKED | Indicates that the certificate was revoked, and so is invalid. | |||||||||
int | verf_INVALID_SIG | Indicates that the signature in the certificate is not valid. | |||||||||
int | verf_PARSE_ERROR | Indicates an error parsing the ASN.1/DER encoding of the certificate. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a certificate exception using an error code
(
verf_* ) and a string describing the context
of the error. | |||||||||||
Constructs a certificate exception using just an error code,
without a string describing the context.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a string describing the certificate exception.
| |||||||||||
Returns a string describing the context in which the exception
was reported.
| |||||||||||
Returns the error code with which the exception was created.
| |||||||||||
Return a string corresponding to the error code used to create
this exception.
| |||||||||||
Returns a string describing the certificate exception.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Indicates an error constructing a certificate or certificate chain.
Indicates a problem with the certificate encoding
Indicates a problem with the certificate format
Indicates a problem with the public key
Indicates a problem with the certificate version
Indicates that a certificate authority in the certification chain is not trusted.
Indicates that the certification chain is too long.
Indicates that the certificate has expired and so is not valid.
Indicates that the certificate is not yet valid.
Indicates that the certificate was revoked, and so is invalid.
Indicates that the signature in the certificate is not valid.
Indicates an error parsing the ASN.1/DER encoding of the certificate.
Constructs a certificate exception using an error code
(verf_*
) and a string describing the context
of the error.
Constructs a certificate exception using just an error code, without a string describing the context.
Returns a string describing the certificate exception.
Returns a string describing the context in which the exception was reported.
Returns the error code with which the exception was created.
Return a string corresponding to the error code used to create this exception.
Returns a string describing the certificate exception.