Save This Page
Home » openjdk-7 » sun.security » validator » [javadoc | source]
sun.security.validator
public final class: PKIXValidator [javadoc | source]
java.lang.Object
   sun.security.validator.Validator
      sun.security.validator.PKIXValidator
Validator implementation built on the PKIX CertPath API. This implementation will be emphasized going forward.

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.

Fields inherited from sun.security.validator.Validator:
CHAIN0,  TYPE_SIMPLE,  TYPE_PKIX,  VAR_GENERIC,  VAR_CODE_SIGNING,  VAR_JCE_SIGNING,  VAR_TLS_CLIENT,  VAR_TLS_SERVER,  VAR_TSA_SERVER,  VAR_PLUGIN_CODE_SIGNING,  endEntityChecker,  variant,  validationDate
Constructor:
 PKIXValidator(String variant,
    Collection trustedCerts) 
 PKIXValidator(String variant,
    PKIXBuilderParameters params) 
Method from sun.security.validator.PKIXValidator Summary:
engineValidate,   getCertPathLength,   getParameters,   getTrustedCertificates
Methods from sun.security.validator.Validator:
engineValidate,   getInstance,   getInstance,   getInstance,   getTrustedCertificates,   setValidationDate,   validate,   validate,   validate
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from sun.security.validator.PKIXValidator Detail:
 X509Certificate[] engineValidate(X509Certificate[] chain,
    Collection otherCerts,
    Object parameter) throws CertificateException 
 public int getCertPathLength() 
    Returns the length of the last certification path that is validated by CertPathValidator. This is intended primarily as a callback mechanism for PKIXCertPathCheckers to determine the length of the certification path that is being validated. It is necessary since engineValidate() may modify the length of the path.
 public PKIXBuilderParameters getParameters() 
    Return the PKIX parameters used by this instance. An application may modify the parameters but must make sure not to perform any concurrent validations.
 public Collection getTrustedCertificates()