public abstract class CertPathBuilderSpi extends Object
CertPathBuilder类。所有的
CertPathBuilder实现必须包含一个类(SPI类),扩展了这类(
CertPathBuilderSpi)实现所有的方法。一般来说,这类的实例只能通过
CertPathBuilder类访问。详情见java加密体系结构。
并发访问
此类的实例不需要保护,不受多个线程的并发访问。线程需要访问一个单一的CertPathBuilderSpi实例同时应同步自己提供必要的锁调用包装CertPathBuilder对象之前。
然而,实现CertPathBuilderSpi仍可能会遇到多线程并发的问题,由于每个操纵不同的CertPathBuilderSpi实例不需要同步。
| Constructor and Description |
|---|
CertPathBuilderSpi()
默认构造函数。
|
| Modifier and Type | Method and Description |
|---|---|
abstract CertPathBuilderResult |
engineBuild(CertPathParameters params)
尝试使用指定的算法参数集构建一个认证路径。
|
CertPathChecker |
engineGetRevocationChecker()
返回一个
CertPathChecker该实现使用检查证书的吊销状态。
|
public abstract CertPathBuilderResult engineBuild(CertPathParameters params) throws CertPathBuilderException, InvalidAlgorithmParameterException
params -算法参数
CertPathBuilderException如果Builder是无法构建一个满足指定的参数认证路径
InvalidAlgorithmParameterException -如果指定的参数,这
CertPathBuilder不当
public CertPathChecker engineGetRevocationChecker()
CertPathChecker该实现使用检查证书的吊销状态。一个实现返回的对象类型
PKIXRevocationChecker PKIX。
该方法的主要目的是允许调用方指定特定的撤销检查的附加输入参数和选项。看到的一个例子CertPathBuilder类的描述。
这种方法被添加到版本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.