Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

java.security.cert
Class CertPathValidatorException  view CertPathValidatorException download CertPathValidatorException.java

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.security.GeneralSecurityException
              extended byjava.security.cert.CertPathValidatorException
All Implemented Interfaces:
java.io.Serializable

public class CertPathValidatorException
extends java.security.GeneralSecurityException

Indicates a problem while validating a certification path. In addition, it can store the path an index in that path that caused the problem. This class is not thread-safe.

Since:
1.4

Nested Class Summary
 
Nested classes inherited from class java.lang.Throwable
 
Field Summary
private  CertPath certPath
          The CertPath that failed.
private  int index
          The index of the certificate path that failed, or -1.
private static long serialVersionUID
          Compatible with JDK 1.4+.
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
CertPathValidatorException()
          Create an exception without a message.
CertPathValidatorException(java.lang.String msg)
          Create an exception with a message.
CertPathValidatorException(java.lang.String msg, java.lang.Throwable cause)
          Create an exception with a cause and a message.
CertPathValidatorException(java.lang.String msg, java.lang.Throwable cause, CertPath certPath, int index)
          Create an exception with a cause, message, failed object, and index of failure in that CertPath.
CertPathValidatorException(java.lang.Throwable cause)
          Create an exception with a cause.
 
Method Summary
 java.lang.Throwable getCause()
          Get the cause, null if unknown.
 CertPath getCertPath()
          Get the certificate path that had the failure, or null.
 int getIndex()
          Get the index that failed, or -1.
 java.lang.String getMessage()
          Get the detail message.
 void printStackTrace()
          Print the stack trace to System.err.
 void printStackTrace(java.io.PrintStream stream)
          Print the stack trace to a stream.
 void printStackTrace(java.io.PrintWriter stream)
          Print the stack trace to a stream.
 java.lang.String toString()
          Convert this to a string, including its cause.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Compatible with JDK 1.4+.

See Also:
Constant Field Values

index

private final int index
The index of the certificate path that failed, or -1.


certPath

private final CertPath certPath
The CertPath that failed.

Constructor Detail

CertPathValidatorException

public CertPathValidatorException()
Create an exception without a message. The cause may be initialized. The index is set to -1 and the failed CertPath object to null.


CertPathValidatorException

public CertPathValidatorException(java.lang.String msg)
Create an exception with a message. The cause may be initialized. The index is set to -1 and the failed CertPath object to null.


CertPathValidatorException

public CertPathValidatorException(java.lang.Throwable cause)
Create an exception with a cause. The message will be cause == null ? null : cause.toString(). The index is set to -1 and the failed CertPath object to null.


CertPathValidatorException

public CertPathValidatorException(java.lang.String msg,
                                  java.lang.Throwable cause)
Create an exception with a cause and a message. The index is set to -1 and the failed CertPath object to null.


CertPathValidatorException

public CertPathValidatorException(java.lang.String msg,
                                  java.lang.Throwable cause,
                                  CertPath certPath,
                                  int index)
Create an exception with a cause, message, failed object, and index of failure in that CertPath.

Method Detail

getMessage

public java.lang.String getMessage()
Get the detail message.


getCertPath

public CertPath getCertPath()
Get the certificate path that had the failure, or null.


getIndex

public int getIndex()
Get the index that failed, or -1.


getCause

public java.lang.Throwable getCause()
Get the cause, null if unknown.


toString

public java.lang.String toString()
Convert this to a string, including its cause.


printStackTrace

public void printStackTrace()
Print the stack trace to System.err.


printStackTrace

public void printStackTrace(java.io.PrintStream stream)
Print the stack trace to a stream.


printStackTrace

public void printStackTrace(java.io.PrintWriter stream)
Print the stack trace to a stream.