All Packages Class Hierarchy This Package Previous Next Index
Class netscape.security.x509.CertException
netscape.security.x509.CertException
- public class CertException
CertException indicates one of a variety of certificate problems.
- See Also:
- Certificate
-
err_CONSTRUCTION
- Indicates an error constructing a certificate or certificate chain.
-
err_ENCODING
- Indicates a problem with the certificate encoding
-
err_INVALID_FORMAT
- Indicates a problem with the certificate format
-
err_INVALID_PUBLIC_KEY
- Indicates a problem with the public key
-
err_INVALID_VERSION
- Indicates a problem with the certificate version
-
verf_CA_UNTRUSTED
- Indicates that a certificate authority in the certification
chain is not trusted.
-
verf_CHAIN_LENGTH
- Indicates that the certification chain is too long.
-
verf_INVALID_EXPIRED
- Indicates that the certificate has expired and so is not valid.
-
verf_INVALID_NOTBEFORE
- Indicates that the certificate is not yet valid.
-
verf_INVALID_REVOKED
- Indicates that the certificate was revoked, and so is invalid.
-
verf_INVALID_SIG
- Indicates that the signature in the certificate is not valid.
-
verf_PARSE_ERROR
- Indicates an error parsing the ASN.1/DER encoding of the certificate.
-
CertException(int)
- Constructs a certificate exception using just an error code,
without a string describing the context.
-
CertException(int, String)
- Constructs a certificate exception using an error code
(
verf_*) and a string describing the context
of the error.
-
getMessage()
- Returns a string describing the certificate exception.
-
getMoreData()
- Returns a string describing the context in which the exception
was reported.
-
getVerfCode()
- Returns the error code with which the exception was created.
-
getVerfDescription()
- Return a string corresponding to the error code used to create
this exception.
-
toString()
- Returns a string describing the certificate exception.
verf_INVALID_SIG
public static final int verf_INVALID_SIG
- Indicates that the signature in the certificate is not valid.
verf_INVALID_REVOKED
public static final int verf_INVALID_REVOKED
- Indicates that the certificate was revoked, and so is invalid.
verf_INVALID_NOTBEFORE
public static final int verf_INVALID_NOTBEFORE
- Indicates that the certificate is not yet valid.
verf_INVALID_EXPIRED
public static final int verf_INVALID_EXPIRED
- Indicates that the certificate has expired and so is not valid.
verf_CA_UNTRUSTED
public static final int verf_CA_UNTRUSTED
- Indicates that a certificate authority in the certification
chain is not trusted.
verf_CHAIN_LENGTH
public static final int verf_CHAIN_LENGTH
- Indicates that the certification chain is too long.
verf_PARSE_ERROR
public static final int verf_PARSE_ERROR
- Indicates an error parsing the ASN.1/DER encoding of the certificate.
err_CONSTRUCTION
public static final int err_CONSTRUCTION
- Indicates an error constructing a certificate or certificate chain.
err_INVALID_PUBLIC_KEY
public static final int err_INVALID_PUBLIC_KEY
- Indicates a problem with the public key
err_INVALID_VERSION
public static final int err_INVALID_VERSION
- Indicates a problem with the certificate version
err_INVALID_FORMAT
public static final int err_INVALID_FORMAT
- Indicates a problem with the certificate format
err_ENCODING
public static final int err_ENCODING
- Indicates a problem with the certificate encoding
CertException
public CertException(int code,
String moredata)
- Constructs a certificate exception using an error code
(
verf_*) and a string describing the context
of the error.
CertException
public CertException(int code)
- Constructs a certificate exception using just an error code,
without a string describing the context.
getVerfCode
public int getVerfCode()
- Returns the error code with which the exception was created.
getMoreData
public String getMoreData()
- Returns a string describing the context in which the exception
was reported.
getVerfDescription
public String getVerfDescription()
- Return a string corresponding to the error code used to create
this exception.
toString
public String toString()
- Returns a string describing the certificate exception.
getMessage
public String getMessage()
- Returns a string describing the certificate exception.
All Packages Class Hierarchy This Package Previous Next Index