-
- 所有已知实现类:
-
PKIXCertPathChecker,PKIXRevocationChecker
public interface CertPathChecker对
Certificate的CertPath执行一个或多个检查。通常创建
CertPathChecker实现来扩展认证路径验证算法。 例如,实现可以检查和处理认证路径中每个证书的关键私人扩展。- 从以下版本开始:
- 1.8
-
-
方法摘要
所有方法 接口方法 抽象方法 Modifier and Type 方法 描述 voidcheck(Certificate cert)使用其内部状态对指定的证书执行检查。voidinit(boolean forward)初始化这个CertPathChecker的内部状态。booleanisForwardCheckingSupported()指示是否支持转发检查。
-
-
-
方法详细信息
-
init
void init(boolean forward) throws CertPathValidatorException
初始化这个CertPathChecker的内部状态。forward标志指定证书将传递给check方法(正向或反向)的顺序。- 参数
-
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- 如果指定的证书没有通过支票
-
-