public interface CertPathChecker
Performs one or more checks on each
CertPathCheckerimplementation 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.
Modifier and Type Method Description
check(Certificate cert)Performs the check(s) on the specified certificate using its internal state.
init(boolean forward)Initializes the internal state of this
isForwardCheckingSupported()Indicates if forward checking is supported.
void init(boolean forward) throws CertPathValidatorExceptionInitializes the internal state of this
forwardflag specifies the order that certificates will be passed to the
checkmethod (forward or reverse).
forward- the order that certificates are presented to the
true, certificates are presented from target to trust anchor (forward); if
false, from trust anchor to target (reverse).
CertPathValidatorException- if this
CertPathCheckeris unable to check certificates in the specified order
boolean isForwardCheckingSupported()Indicates if forward checking is supported. Forward checking refers to the ability of the
CertPathCheckerto perform its checks when certificates are presented to the
checkmethod in the forward direction (from target to trust anchor).
trueif forward checking is supported,
void check(Certificate cert) throws CertPathValidatorExceptionPerforms the check(s) on the specified certificate using its internal state. The certificates are presented in the order specified by the
Certificateto be checked
CertPathValidatorException- if the specified certificate does not pass the check