public class PKIXCertPathBuilderResult extends PKIXCertPathValidatorResult implements CertPathBuilderResult
PKIXCertPathBuilderResult的PKIXCertPathBuilderResult由执行build算法的CertPathBuilder对象的build方法返回。
所有PKIXCertPathBuilderResult对象都包含由构建算法构建的认证路径,由构建算法产生的有效策略树和主题公钥,以及TrustAnchor作为认证路径的信任锚的证书颁发机构(CA)的TrustAnchor。
并发访问
除非另有说明,否则此类中定义的方法不是线程安全的。 需要同时访问单个对象的多个线程应在其间同步并提供必要的锁定。 每个操作单独对象的多个线程不需要同步。
CertPathBuilderResult
| Constructor and Description |
|---|
PKIXCertPathBuilderResult(CertPath certPath, TrustAnchor trustAnchor, PolicyNode policyTree, PublicKey subjectPublicKey)
创建包含
PKIXCertPathBuilderResult参数的PKIXCertPathBuilderResult实例。
|
| Modifier and Type | Method and Description |
|---|---|
CertPath |
getCertPath()
返回建立和验证的认证路径。
|
String |
toString()
返回此
PKIXCertPathBuilderResult 。
|
clone, getPolicyTree, getPublicKey, getTrustAnchorequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclonepublic PKIXCertPathBuilderResult(CertPath certPath, TrustAnchor trustAnchor, PolicyNode policyTree, PublicKey subjectPublicKey)
PKIXCertPathBuilderResult参数的PKIXCertPathBuilderResult实例。
certPath - 经过验证的
CertPath
trustAnchor -
TrustAnchor CA作为认证路径的信任锚的TrustAnchor
policyTree - 不可变的有效策略树,如果没有有效的策略,
null
subjectPublicKey - 主题的公钥
NullPointerException -如果
certPath ,
trustAnchor或
subjectPublicKey参数
null
public CertPath getCertPath()
getCertPath在接口
CertPathBuilderResult
CertPath (从不
null )
public String toString()
PKIXCertPathBuilderResult 。
toString在
PKIXCertPathValidatorResult
String describing the contents of this
PKIXCertPathBuilderResult
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.