com.ibm.security12.sun.security.x509
Class CertException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--java.lang.SecurityException
                          |
                          +--com.ibm.security12.sun.security.x509.CertException

Deprecated. use one of Exceptions defined in the java.security.cert package.

public class CertException
extends SecurityException

CertException indicates one of a variety of certificate problems.

Version:
1.21
Author:
David Brownell
See Also:
Certificate, Serialized Form

Field Summary
static int err_CONSTRUCTION
          Deprecated. Indicates an error constructing a certificate or certificate chain.
static int err_ENCODING
          Deprecated. Indicates a problem with the certificate encoding
static int err_INVALID_FORMAT
          Deprecated. Indicates a problem with the certificate format
static int err_INVALID_PUBLIC_KEY
          Deprecated. Indicates a problem with the public key
static int err_INVALID_VERSION
          Deprecated. Indicates a problem with the certificate version
static int verf_CA_UNTRUSTED
          Deprecated. Indicates that a certificate authority in the certification chain is not trusted.
static int verf_CHAIN_LENGTH
          Deprecated. Indicates that the certification chain is too long.
static int verf_INVALID_EXPIRED
          Deprecated. Indicates that the certificate has expired and so is not valid.
static int verf_INVALID_NOTBEFORE
          Deprecated. Indicates that the certificate is not yet valid.
static int verf_INVALID_REVOKED
          Deprecated. Indicates that the certificate was revoked, and so is invalid.
static int verf_INVALID_SIG
          Deprecated. Indicates that the signature in the certificate is not valid.
static int verf_PARSE_ERROR
          Deprecated. Indicates an error parsing the ASN.1/DER encoding of the certificate.
 
Constructor Summary
CertException(int code)
          Deprecated. Constructs a certificate exception using just an error code, without a string describing the context.
CertException(int code, String moredata)
          Deprecated. Constructs a certificate exception using an error code (verf_*) and a string describing the context of the error.
 
Method Summary
 String getMessage()
          Deprecated. Returns a string describing the certificate exception.
 String getMoreData()
          Deprecated. Returns a string describing the context in which the exception was reported.
 int getVerfCode()
          Deprecated. Returns the error code with which the exception was created.
 String getVerfDescription()
          Deprecated. Return a string corresponding to the error code used to create this exception.
 String toString()
          Deprecated. Returns a string describing the certificate exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

verf_INVALID_SIG

public static final int verf_INVALID_SIG
Deprecated. 
Indicates that the signature in the certificate is not valid.

verf_INVALID_REVOKED

public static final int verf_INVALID_REVOKED
Deprecated. 
Indicates that the certificate was revoked, and so is invalid.

verf_INVALID_NOTBEFORE

public static final int verf_INVALID_NOTBEFORE
Deprecated. 
Indicates that the certificate is not yet valid.

verf_INVALID_EXPIRED

public static final int verf_INVALID_EXPIRED
Deprecated. 
Indicates that the certificate has expired and so is not valid.

verf_CA_UNTRUSTED

public static final int verf_CA_UNTRUSTED
Deprecated. 
Indicates that a certificate authority in the certification chain is not trusted.

verf_CHAIN_LENGTH

public static final int verf_CHAIN_LENGTH
Deprecated. 
Indicates that the certification chain is too long.

verf_PARSE_ERROR

public static final int verf_PARSE_ERROR
Deprecated. 
Indicates an error parsing the ASN.1/DER encoding of the certificate.

err_CONSTRUCTION

public static final int err_CONSTRUCTION
Deprecated. 
Indicates an error constructing a certificate or certificate chain.

err_INVALID_PUBLIC_KEY

public static final int err_INVALID_PUBLIC_KEY
Deprecated. 
Indicates a problem with the public key

err_INVALID_VERSION

public static final int err_INVALID_VERSION
Deprecated. 
Indicates a problem with the certificate version

err_INVALID_FORMAT

public static final int err_INVALID_FORMAT
Deprecated. 
Indicates a problem with the certificate format

err_ENCODING

public static final int err_ENCODING
Deprecated. 
Indicates a problem with the certificate encoding
Constructor Detail

CertException

public CertException(int code,
                     String moredata)
Deprecated. 
Constructs a certificate exception using an error code (verf_*) and a string describing the context of the error.

CertException

public CertException(int code)
Deprecated. 
Constructs a certificate exception using just an error code, without a string describing the context.
Method Detail

getVerfCode

public int getVerfCode()
Deprecated. 
Returns the error code with which the exception was created.

getMoreData

public String getMoreData()
Deprecated. 
Returns a string describing the context in which the exception was reported.

getVerfDescription

public String getVerfDescription()
Deprecated. 
Return a string corresponding to the error code used to create this exception.

toString

public String toString()
Deprecated. 
Returns a string describing the certificate exception.
Overrides:
toString in class Throwable

getMessage

public String getMessage()
Deprecated. 
Returns a string describing the certificate exception.
Overrides:
getMessage in class Throwable