-
- 所有已知实现类:
-
PKIXCertPathChecker,PKIXRevocationChecker
public interface CertPathChecker对每个的一个或多个检查
Certificate一个的CertPath。通常创建
CertPathChecker实现以扩展证书路径验证算法。 例如,实现可以检查并处理证书路径中的每个证书的关键私有扩展。- 从以下版本开始:
- 1.8
-
-
方法摘要
所有方法 实例方法 抽象方法 变量和类型 方法 描述 voidcheck(Certificate cert)使用其内部状态对指定证书执行检查。voidinit(boolean forward)初始化此CertPathChecker的内部状态。booleanisForwardCheckingSupported()指示是否支持前向检查。
-
-
-
方法详细信息
-
init
void init(boolean forward) throws CertPathValidatorException
- 参数
-
forward- 证书提交给check方法的check。 如果true,证书从目标到信任锚(转发)呈现; 如果false,从信任锚到目标(反向)。 - 异常
-
CertPathValidatorException- 如果此CertPathChecker无法按指定的顺序检查证书
-
isForwardCheckingSupported
boolean isForwardCheckingSupported()
指示是否支持前向检查。 正向检查指的能力CertPathChecker当证书被呈现给执行其检查check方法在向前方向(从靶信任锚)。- 结果
-
true如果支持前向检查,否则为false
-
check
void check(Certificate cert) throws CertPathValidatorException
使用其内部状态对指定证书执行检查。 证书按init方法指定的顺序init。- 参数
-
cert- 要检查的Certificate - 异常
-
CertPathValidatorException- 如果指定的证书未通过检查
-
-