|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.security.GeneralSecurityException
java.security.cert.CertPathValidatorException
public class 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.
CertPathValidator
,
Serialized FormConstructor Summary | |
---|---|
CertPathValidatorException()
Create an exception without a message. |
|
CertPathValidatorException(String msg)
Create an exception with a message. |
|
CertPathValidatorException(String msg,
Throwable cause)
Create an exception with a cause and a message. |
|
CertPathValidatorException(String msg,
Throwable cause,
CertPath certPath,
int index)
Create an exception with a cause, message, failed object, and index of failure in that CertPath. |
|
CertPathValidatorException(Throwable cause)
Create an exception with a cause. |
Method Summary | |
---|---|
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. |
String |
getMessage()
Get the detail message. |
void |
printStackTrace()
Print the stack trace to System.err . |
void |
printStackTrace(PrintStream stream)
Print the stack trace to a stream. |
void |
printStackTrace(PrintWriter stream)
Print the stack trace to a stream. |
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 |
Constructor Detail |
---|
public CertPathValidatorException()
public CertPathValidatorException(String msg)
msg
- a message to display with exceptionpublic CertPathValidatorException(Throwable cause)
cause == null ? null : cause.toString()
. The index is set
to -1 and the failed CertPath object to null.
cause
- the causepublic CertPathValidatorException(String msg, Throwable cause)
msg
- the messagecause
- the causepublic CertPathValidatorException(String msg, Throwable cause, CertPath certPath, int index)
msg
- the messagecause
- the causecertPath
- the path that was being validated, or nullindex
- the index of the path, or -1
IndexOutOfBoundsException
- if index is < -1 or
> certPath.getCertificates().size()
IllegalArgumentException
- if certPath is null but index != -1Method Detail |
---|
public String getMessage()
getMessage
in class Throwable
public CertPath getCertPath()
public int getIndex()
public Throwable getCause()
getCause
in class Throwable
public String toString()
toString
in class Throwable
Object.getClass()
,
Object.hashCode()
,
Class.getName()
,
Integer.toHexString(int)
public void printStackTrace()
System.err
.
printStackTrace
in class Throwable
public void printStackTrace(PrintStream stream)
printStackTrace
in class Throwable
stream
- the streampublic void printStackTrace(PrintWriter stream)
printStackTrace
in class Throwable
stream
- the stream
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |