APIdia Launch Partner
Top Description Methods
java.security.cert

public Interface CertPathChecker

Known Direct Implementers
java.security.cert.PKIXCertPathChecker

Performs one or more checks on each Certificate of a CertPath.

A CertPathChecker implementation is typically created to extend a certification path validation algorithm. For example, an implementation may check for and process a critical private extension of each certificate in a certification path.

Since
1.8

Method Summary

Modifier and TypeMethod and Description
public void
check(Certificate
the Certificate to be checked
cert
)

Performs the check(s) on the specified certificate using its internal state.

public void
init(boolean
the order that certificates are presented to the check method. If true, certificates are presented from target to trust anchor (forward); if false, from trust anchor to target (reverse).
forward
)

Initializes the internal state of this CertPathChecker.

public boolean

Returns:

true if forward checking is supported, false otherwise
isForwardCheckingSupported
()

Indicates if forward checking is supported.

Method Detail

checkback to summary
public void check(Certificate cert) throws CertPathValidatorException

Performs the check(s) on the specified certificate using its internal state. The certificates are presented in the order specified by the init method.

Parameters
cert:Certificate

the Certificate to be checked

Exceptions
CertPathValidatorException:
if the specified certificate does not pass the check
initback to summary
public void init(boolean forward) throws CertPathValidatorException

Initializes the internal state of this CertPathChecker.

The forward flag specifies the order that certificates will be passed to the check method (forward or reverse).

Parameters
forward:boolean

the order that certificates are presented to the check method. If true, certificates are presented from target to trust anchor (forward); if false, from trust anchor to target (reverse).

Exceptions
CertPathValidatorException:
if this CertPathChecker is unable to check certificates in the specified order
isForwardCheckingSupportedback to summary
public boolean isForwardCheckingSupported()

Indicates if forward checking is supported. Forward checking refers to the ability of the CertPathChecker to perform its checks when certificates are presented to the check method in the forward direction (from target to trust anchor).

Returns:boolean

true if forward checking is supported, false otherwise