java.lang.Object | ||||
↳ | java.lang.Throwable | |||
↳ | java.lang.Exception | |||
↳ | java.security.GeneralSecurityException | |||
↳ | java.security.cert.CertPathValidatorException |
The exception that is thrown when a certification path (or certificate chain) cannot be validated.
A CertPathValidatorException
may optionally include the certification
path instance that failed the validation and the index of the failed
certificate.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new
CertPathValidatorException with the specified
message , cause, certification path and certificate index in the
certification path. | |||||||||||
Creates a new
CertPathValidatorException with the specified
message and cause. | |||||||||||
Creates a new
CertPathValidatorException with the specified
cause. | |||||||||||
Creates a new
CertPathValidatorException with the specified
message. | |||||||||||
Creates a new
CertPathValidatorException . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the certification path that failed validation.
| |||||||||||
Returns the index of the failed certificate in the certification path.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Throwable
| |||||||||||
From class java.lang.Object
|
Creates a new CertPathValidatorException
with the specified
message , cause, certification path and certificate index in the
certification path.
msg | the detail message for this exception. |
---|---|
cause | the cause. |
certPath | the certification path that failed the validation. |
index | the index of the failed certificate. |
IllegalArgumentException | if certPath is null and index is not -1 . |
---|---|
IndexOutOfBoundsException | if certPath is not null and index is not
referencing an certificate in the certification path. |
Creates a new CertPathValidatorException
with the specified
message and cause.
msg | the detail message for this exception. |
---|---|
cause | the cause why the path could not be validated. |
Creates a new CertPathValidatorException
with the specified
cause.
cause | the cause why the path could not be validated. |
---|
Creates a new CertPathValidatorException
with the specified
message.
msg | the detail message for this exception. |
---|
Returns the certification path that failed validation.
null
if
none was specified.Returns the index of the failed certificate in the certification path.
-1
if none was specified.