X509Certificate.
A concrete implementation of the PKIXCertPathChecker class
can be created to extend the PKIX certification path validation algorithm.
For example, an implementation may check for and process a critical private
extension of each certificate in a certification path.
Instances of PKIXCertPathChecker are passed as parameters
using the setCertPathCheckers
or addCertPathChecker methods
of the PKIXParameters and PKIXBuilderParameters
class. Each of the PKIXCertPathCheckers check
methods will be called, in turn, for each certificate processed by a PKIX
CertPathValidator or CertPathBuilder
implementation.
A PKIXCertPathChecker may be called multiple times on
successive certificates in a certification path. Concrete subclasses
are expected to maintain any internal state that may be necessary to
check successive certificates. The init method is used
to initialize the internal state of the checker so that the certificates
of a new certification path may be checked. A stateful implementation
must override the clone method if necessary in
order to allow a PKIX CertPathBuilder to efficiently
backtrack and try other paths. In these situations, the
CertPathBuilder is able to restore prior path validation
states by restoring the cloned PKIXCertPathCheckers.
The order in which the certificates are presented to the
PKIXCertPathChecker may be either in the forward direction
(from target to most-trusted CA) or in the reverse direction (from
most-trusted CA to target). A PKIXCertPathChecker implementation
must support reverse checking (the ability to perform its checks when
it is presented with certificates in the reverse direction) and may
support forward checking (the ability to perform its checks when it is
presented with certificates in the forward direction). The
isForwardCheckingSupported method
indicates whether forward checking is supported.
Additional input parameters required for executing the check may be specified through constructors of concrete implementations of this class.
Concurrent Access
Unless otherwise specified, the methods defined in this class are not thread-safe. Multiple threads that need to access a single object concurrently should synchronize amongst themselves and provide the necessary locking. Multiple threads each manipulating separate objects need not synchronize.
PKIXParameters, PKIXBuilderParameters
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | check(Certificate
the cert, Collection<String> Certificate to be checkeda unresolvedCritExts)Collection of OID strings
representing the current set of unresolved critical extensionsPerforms the check(s) on the specified certificate using its internal state and removes any critical extensions that it processes from the specified collection of OID strings that represent the unresolved critical extensions. |
| public void | check(Certificate cert)
Implements java. Performs the check(s) on the specified certificate using its internal state. |
| public Object | Returns: a copy of thisPKIXCertPathCheckerOverrides java. Returns a clone of this object. |
| public abstract Set | Returns: an immutableSet of X.509 extension OIDs (in
String format) supported by this
PKIXCertPathChecker, or null if no
extensions are supportedReturns an immutable |
| public abstract void | init(boolean
the order that certificates are presented to
the forward)check method. If true, certificates
are presented from target to most-trusted CA (forward); if
false, from most-trusted CA to target (reverse).Redeclares java. Initializes the internal state of this |
| public abstract boolean | Returns: true if forward checking is supported,
false otherwiseRedeclares java. Indicates if forward checking is supported. |
| PKIXCertPathChecker | back to summary |
|---|---|
| protected PKIXCertPathChecker() Default constructor. | |
| check | back to summary |
|---|---|
| public abstract void check(Certificate cert, Collection<String> unresolvedCritExts) throws CertPathValidatorException Performs the check(s) on the specified certificate using its internal
state and removes any critical extensions that it processes from the
specified collection of OID strings that represent the unresolved
critical extensions. The certificates are presented in the order
specified by the
| |
| check | back to summary |
|---|---|
| public void check(Certificate cert) throws CertPathValidatorException Implements java. Doc from java. Performs the check(s) on the specified certificate using its internal
state. The certificates are presented in the order specified by the
This implementation calls
| |
| clone | back to summary |
|---|---|
| public Object clone() Overrides java. Returns a clone of this object. Calls the | |
| getSupportedExtensions | back to summary |
|---|---|
| public abstract Set Returns an immutable
Each element of the set is a
All X.509 certificate extensions that a | |
| init | back to summary |
|---|---|
| public abstract void init(boolean forward) throws CertPathValidatorException Redeclares java. Initializes the internal state of this
The
| |
| isForwardCheckingSupported | back to summary |
|---|---|
| public abstract boolean isForwardCheckingSupported() Redeclares java. Indicates if forward checking is supported. Forward checking refers
to the ability of the
| |