public abstract class CertPathBuilderSpi
extends Object
| java.lang.Object | |
| java.security.cert.CertPathBuilderSpi | |
CertPathBuilder类的 ( SPI )。 所有CertPathBuilder实现都必须包含一个扩展此类( CertPathBuilderSpi )并实现其所有方法的类(SPI类)。 通常,只能通过CertPathBuilder类访问此类的实例。 有关详细信息,请参阅Java加密体系结构。
并发访问
不需要保护这个类的实例免受来自多个线程的并发访问的影响。 需要同时访问单个CertPathBuilderSpi实例的线程应该在它们自己之间进行同步,并在调用包装CertPathBuilder对象之前提供必要的锁定。
但是, CertPathBuilderSpi实现可能仍会遇到并发问题,因为每个操作不同 CertPathBuilderSpi实例的多个线程 CertPathBuilderSpi需要同步。
Public constructors |
|
|---|---|
CertPathBuilderSpi() 默认的构造函数。 |
|
公共方法(Public methods) |
|
|---|---|
abstract CertPathBuilderResult |
engineBuild(CertPathParameters params) 尝试使用指定的算法参数集来构建认证路径。 |
CertPathChecker |
engineGetRevocationChecker() 返回此实现用于检查证书吊销状态的 |
继承方法(Inherited methods) |
|
|---|---|
java.lang.Object
|
|
CertPathBuilderResult engineBuild (CertPathParameters params)
尝试使用指定的算法参数集来构建认证路径。
| 参数(Parameters) | |
|---|---|
params |
CertPathParameters: the algorithm parameters |
| 返回(Returns) | |
|---|---|
CertPathBuilderResult |
the result of the build algorithm |
| 抛出异常(Throws) | |
|---|---|
CertPathBuilderException |
if the builder is unable to construct a certification path that satisfies the specified parameters |
InvalidAlgorithmParameterException |
if the specified parameters are inappropriate for this CertPathBuilder |
CertPathChecker engineGetRevocationChecker ()
返回此实现用于检查证书吊销状态的CertPathChecker 。 PKIX实现返回PKIXRevocationChecker类型的PKIXRevocationChecker 。
此方法的主要目的是允许调用者指定特定于撤销检查的其他输入参数和选项。 示例请参阅CertPathBuilder的类描述。
此方法已添加到Java Platform Standard Edition的1.8版中。 为了保持与现有服务提供商的向后兼容性,该方法不能是抽象的,并且默认情况下引发UnsupportedOperationException 。
| 返回(Returns) | |
|---|---|
CertPathChecker |
a CertPathChecker that this implementation uses to check the revocation status of certificates |
| 抛出异常(Throws) | |
|---|---|
UnsupportedOperationException |
if this method is not supported |