java.security.cert
public class CertPathValidatorException extends GeneralSecurityException
Since: 1.4
See Also: CertPathValidator
UNKNOWN: updated to 1.4
Constructor Summary | |
---|---|
CertPathValidatorException()
Create an exception without a message. | |
CertPathValidatorException(String msg)
Create an exception with a message. | |
CertPathValidatorException(Throwable cause)
Create an exception with a cause. | |
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.
|
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.
|
Parameters: msg a message to display with exception
cause == null ? null : cause.toString()
. The index is set
to -1 and the failed CertPath object to null.
Parameters: cause the cause
Parameters: msg the message cause the cause
Parameters: msg the message cause the cause certPath the path that was being validated, or null index the index of the path, or -1
Throws: IndexOutOfBoundsException if index is < -1 or > certPath.getCertificates().size() IllegalArgumentException if certPath is null but index != -1
Returns: the cause
Returns: the culprit path
Returns: the colprit index
Returns: the detail message
System.err
.Parameters: stream the stream
Parameters: stream the stream
Returns: the string conversion