public interface CertPathChecker
对每个的一个或多个检查Certificate一个的CertPath 。
通常创建CertPathChecker实现来扩展认证路径验证算法。 例如,实现可以检查和处理认证路径中每个证书的关键私有扩展。
| Modifier and Type | Method and Description |
|---|---|
void |
check(Certificate cert)
使用其内部状态对指定的证书执行检查。
|
void |
init(boolean forward)
这个初始化的内部状态
CertPathChecker 。
|
boolean |
isForwardCheckingSupported()
指示是否支持转发检查。
|
void init(boolean forward) throws CertPathValidatorException
CertPathChecker 。
forward标志指定证书将传递给check方法(正向或反向)的顺序。
forward - 证书颁发给check方法的顺序。
如果true ,证书由目标提供给信任锚(转发);
如果false ,从信任锚到目标(反向)。
CertPathValidatorException - 如果这
CertPathChecker无法以指定的顺序检查证书
boolean isForwardCheckingSupported()
CertPathChecker执行检查的能力,当证书以正向方向(从目标到信任锚点)呈现给check方法时。
true如果支持前向检查,
false false
void check(Certificate cert) throws CertPathValidatorException
init方法指定的顺序显示。
cert - 要检查的
Certificate
CertPathValidatorException - 如果指定的证书没有通过支票
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.