public interface CertPathChecker
在每一个CertPath Certificate执行一个或更多的检查。
一个CertPathChecker实施通常是创建扩展的证书路径验证算法。例如,一个实现可以检查和处理证书路径中的每个证书的一个关键的私有扩展。
| Modifier and Type | Method and Description |
|---|---|
void |
check(Certificate cert)
使用其内部状态在指定的证书上执行检查(s)。
|
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否则
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.