public class PKIXCertPathValidatorResult extends Object implements CertPathValidatorResult
PKIXCertPathValidatorResult的PKIXCertPathValidatorResult由执行PKIX算法的CertPathValidator对象的validate方法返回。
所有PKIXCertPathValidatorResult对象包含有效策略树,并从验证算法所得主体公钥,以及一个TrustAnchor描述作为证书路径受信定位点的证书颁发机构(CA)。
并发访问
除非另有说明,否则此类中定义的方法不是线程安全的。 需要同时访问单个对象的多个线程应在其间同步并提供必要的锁定。 每个操作单独对象的多个线程不需要同步。
CertPathValidatorResult
| Constructor and Description |
|---|
PKIXCertPathValidatorResult(TrustAnchor trustAnchor, PolicyNode policyTree, PublicKey subjectPublicKey)
创建包含
PKIXCertPathValidatorResult参数的PKIXCertPathValidatorResult实例。
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
返回此对象的副本。
|
PolicyNode |
getPolicyTree()
返回PKIX认证路径验证算法产生的有效策略树的根节点。
|
PublicKey |
getPublicKey()
返回认证路径的主题(目标)的公钥,包括任何继承的公钥参数(如果适用)。
|
TrustAnchor |
getTrustAnchor()
返回
TrustAnchor作为证书路径的信任锚的CA的TrustAnchor。
|
String |
toString()
返回此
PKIXCertPathValidatorResult 。
|
public PKIXCertPathValidatorResult(TrustAnchor trustAnchor, PolicyNode policyTree, PublicKey subjectPublicKey)
PKIXCertPathValidatorResult参数的PKIXCertPathValidatorResult实例。
trustAnchor - a
TrustAnchor描述CA作为认证路径的信任锚点
policyTree - 不可变的有效策略树,如果没有有效的策略,
null
subjectPublicKey - 主题的公钥
NullPointerException - 如果
subjectPublicKey或
trustAnchor参数是
null
public TrustAnchor getTrustAnchor()
TrustAnchor作为证书路径的信任锚的CA的TrustAnchor。
TrustAnchor (从不
null )
public PolicyNode getPolicyTree()
PolicyNode对象以及通过公共方法返回的任何对象是不可变的。
大多数应用程序不需要检查有效的策略树。 它们可以通过设置策略相关的参数来获得其策略处理目标PKIXParameters 。 然而,更复杂的应用程序,特别是处理策略限定符的应用程序可能需要使用PolicyNode.getParent和PolicyNode.getChildren方法遍历有效的策略树。
null
public PublicKey getPublicKey()
null )
public Object clone()
clone在接口
CertPathValidatorResult
clone在
Object
Cloneable
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.