java.security.cert
Class CertPathValidatorException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.security.GeneralSecurityException
|
+--java.security.cert.CertPathValidatorException
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:Author:- Eric Blake <ebb9@email.byu.edu>
See Also:
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.
Parameters:
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.
Parameters:
CertPathValidatorException
public CertPathValidatorException(java.lang.String msg, java.lang.Throwable cause, java.security.cert.CertPath certPath, int index)
Create an exception with a cause, message, failed object, and index of
failure in that CertPath.
Parameters:
Throws:
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.
Parameters:
getCause
public Throwable getCause()
Get the cause, null if unknown.
Returns:
getCertPath
public CertPath getCertPath()
Get the certificate path that had the failure, or null.
Returns:
getIndex
public int getIndex()
Get the index that failed, or -1.
Returns:
getMessage
public String getMessage()
Get the detail message.
Returns:
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.
Parameters:
printStackTrace
public void printStackTrace(java.io.PrintWriter stream)
Print the stack trace to a stream.
Parameters:
toString
public String toString()
Convert this to a string, including its cause.
Returns: