public final class

PKIXValidator

extends Validator
java.lang.Object
   ↳ sun.security.validator.Validator
     ↳ sun.security.validator.PKIXValidator

Class Overview

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.

Summary

[Expand]
Inherited Constants
From class sun.security.validator.Validator
Public Methods
int getCertPathLength()
Returns the length of the last certification path that is validated by CertPathValidator.
PKIXBuilderParameters getParameters()
Return the PKIX parameters used by this instance.
Collection<X509Certificate> getTrustedCertificates()
Returns an immutable Collection of the X509Certificates this instance uses as trust anchors.
[Expand]
Inherited Methods
From class sun.security.validator.Validator
From class java.lang.Object

Public Methods

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.

Returns
  • the length of the last certification path passed to CertPathValidator.validate, or -1 if it has not been invoked yet

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<X509Certificate> getTrustedCertificates ()

Returns an immutable Collection of the X509Certificates this instance uses as trust anchors.