public abstract class CertPathValidatorSpi extends Object
CertPathValidator类。所有的
CertPathValidator实现必须包含一个类(SPI类),扩展了这类(
CertPathValidatorSpi)实现所有的方法。一般来说,这类的实例只能通过
CertPathValidator类访问。详情见java加密体系结构。
并发访问
此类的实例不需要保护,不受多个线程的并发访问。线程需要访问一个单一的CertPathValidatorSpi实例同时应同步自己提供必要的锁调用包装CertPathValidator对象之前。
然而,实现CertPathValidatorSpi仍可能会遇到多线程并发的问题,由于每个操纵不同的CertPathValidatorSpi实例不需要同步。
| Constructor and Description |
|---|
CertPathValidatorSpi()
默认构造函数。
|
| Modifier and Type | Method and Description |
|---|---|
CertPathChecker |
engineGetRevocationChecker()
返回一个
CertPathChecker该实现使用检查证书的吊销状态。
|
abstract CertPathValidatorResult |
engineValidate(CertPath certPath, CertPathParameters params)
使用指定的算法参数集来验证指定的证书路径。
|
public abstract CertPathValidatorResult engineValidate(CertPath certPath, CertPathParameters params) throws CertPathValidatorException, InvalidAlgorithmParameterException
的CertPath指定必须是一个类型,由验证算法的支持,否则将抛出一InvalidAlgorithmParameterException。例如,一个CertPathValidator实现PKIX算法验证X.509 CertPath对象类型。
certPath -
CertPath待验证
params -算法参数
CertPathValidatorException -如果
CertPath不验证
InvalidAlgorithmParameterException -如果指定的参数或指定的
CertPath类型这
CertPathValidator不当
public CertPathChecker engineGetRevocationChecker()
CertPathChecker该实现使用检查证书的吊销状态。一个实现返回的对象类型
PKIXRevocationChecker PKIX。
该方法的主要目的是允许调用方指定特定的撤销检查的附加输入参数和选项。看到的一个例子CertPathValidator类的描述。
这种方法被添加到版本1.8的java平台标准版。为了保持与现有服务提供商的向后兼容性,这种方法不能是抽象的,默认情况下抛出一个UnsupportedOperationException。
CertPathChecker实现使用检查证书的吊销状态
UnsupportedOperationException -如果不支持这个方法
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.