public class PKIXCertPathValidatorResult extends Object implements CertPathValidatorResult
实例PKIXCertPathValidatorResult
由CertPathValidator
对象实现的实现算法的validate
方法返回。
所有的PKIXCertPathValidatorResult
对象包含的有效策略树和主题的公钥验证算法,以及一个TrustAnchor
描述的证书颁发机构(CA)作为一种认证路径信任锚。
并发访问
除非另有说明,在这个类中定义的方法不是线程安全的。需要访问一个单一对象的多个线程同时应同步,并提供必要的锁。多线程每个操作单独的对象不需要同步。
CertPathValidatorResult
Constructor and Description |
---|
PKIXCertPathValidatorResult(TrustAnchor trustAnchor, PolicyNode policyTree, PublicKey subjectPublicKey)
创建包含指定的参数
PKIXCertPathValidatorResult 实例。
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
返回此对象的副本。
|
PolicyNode |
getPolicyTree()
返回从PKIX证书路径验证算法的有效决策树的根节点。
|
PublicKey |
getPublicKey()
返回认证路径的主题(目标)的公钥(如果适用的话),包括任何继承的公共密钥参数。
|
TrustAnchor |
getTrustAnchor()
返回描述CA,担任一个证书路径的
TrustAnchor 信任锚。
|
String |
toString()
返回一个表示该
PKIXCertPathValidatorResult 打印。
|
public PKIXCertPathValidatorResult(TrustAnchor trustAnchor, PolicyNode policyTree, PublicKey subjectPublicKey)
PKIXCertPathValidatorResult
实例。
trustAnchor
-
TrustAnchor
描述CA,担任一个证书路径信任锚
policyTree
-永恒的有效政策树,或
null
如果没有有效的政策
subjectPublicKey
主题的公钥
NullPointerException
-如果
subjectPublicKey
或
trustAnchor
参数
null
public TrustAnchor getTrustAnchor()
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.