public final class PKIXValidator extends Validator
Note that the validate() implementation tries to use a PKIX validator if that appears possible and a PKIX builder otherwise. This increases performance and currently also leads to better exception messages in case of failures.
PKIXValidator objects are immutable once they have been created.
Please DO NOT add methods that can change the state of an instance once
it has been created.
TYPE_PKIX, TYPE_SIMPLE, VAR_CODE_SIGNING, VAR_GENERIC, VAR_JCE_SIGNING, VAR_TLS_CLIENT, VAR_TLS_SERVER, VAR_TSA_SERVER| Modifier and Type | Method and Description |
|---|---|
int |
getCertPathLength()
Returns the length of the last certification path that is validated by
CertPathValidator.
|
java.security.cert.PKIXBuilderParameters |
getParameters()
Return the PKIX parameters used by this instance.
|
java.util.Collection<java.security.cert.X509Certificate> |
getTrustedCertificates()
Returns an immutable Collection of the X509Certificates this instance
uses as trust anchors.
|
getInstance, getInstance, getInstance, setValidationDate, validate, validate, validate, validatepublic java.util.Collection<java.security.cert.X509Certificate> getTrustedCertificates()
ValidatorgetTrustedCertificates in class Validatorpublic int getCertPathLength()
public java.security.cert.PKIXBuilderParameters getParameters()