All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class iaik.x509.CertException

java.lang.Object
   |
   +----java.lang.Throwable
           |
           +----java.lang.Exception
                   |
                   +----iaik.asn1.CodingException
                           |
                           +----iaik.x509.CertException

public class CertException
extends CodingException
This exception is thrown when there occurs a problem with certificates.


Variable Index

 o CA_UNTRUSTED
 o CHAIN_LENGTH
 o CONSTRUCTION
 o INVALID_EXPIRED
 o INVALID_NOTBEFORE
 o INVALID_PUBLIC_KEY
 o INVALID_REVOKED
 o INVALID_SIGNATURE
 o PARSE_ERROR
 o PUBKEYALG_MISSING
 o VERIFICATION

Constructor Index

 o CertException(int)
Creates a new CertException with a specific code.
 o CertException(int, String)
Creates a new CertException using a code and a description.

Method Index

 o getData()
Returns a detailed description of the exception.
 o getExceptionCode()
Returns the basic code of the exception.
 o getMessage()
Returns the description of the basic code.

Variables

 o INVALID_SIGNATURE
 public static final int INVALID_SIGNATURE
 o INVALID_REVOKED
 public static final int INVALID_REVOKED
 o INVALID_NOTBEFORE
 public static final int INVALID_NOTBEFORE
 o INVALID_EXPIRED
 public static final int INVALID_EXPIRED
 o CA_UNTRUSTED
 public static final int CA_UNTRUSTED
 o CHAIN_LENGTH
 public static final int CHAIN_LENGTH
 o PARSE_ERROR
 public static final int PARSE_ERROR
 o CONSTRUCTION
 public static final int CONSTRUCTION
 o INVALID_PUBLIC_KEY
 public static final int INVALID_PUBLIC_KEY
 o VERIFICATION
 public static final int VERIFICATION
 o PUBKEYALG_MISSING
 public static final int PUBKEYALG_MISSING

Constructors

 o CertException
 public CertException(int code,
                      String data)
Creates a new CertException using a code and a description.

Parameters:
code - shows the basic reason for this exception
description - a more detailted description of the exception
 o CertException
 public CertException(int code)
Creates a new CertException with a specific code.

Parameters:
code - shows the basic reason for this exception

Methods

 o getExceptionCode
 public int getExceptionCode()
Returns the basic code of the exception.

Returns:
the code of this exception
 o getData
 public String getData()
Returns a detailed description of the exception.

Returns:
a more detailted description of the exception
 o getMessage
 public String getMessage()
Returns the description of the basic code.

Returns:
a basic description of the exception
Overrides:
getMessage in class Throwable

All Packages  Class Hierarchy  This Package  Previous  Next  Index