Most visited

Recently visited

Added in API level 1

PKIXCertPathBuilderResult

public class PKIXCertPathBuilderResult
extends PKIXCertPathValidatorResult implements CertPathBuilderResult

java.lang.Object
    java.security.cert.PKIXCertPathValidatorResult
      java.security.cert.PKIXCertPathBuilderResult


该类表示PKIX证书路径生成器算法的成功结果。 所有使用此算法构建和返回的认证路径也会根据PKIX认证路径验证算法进行验证。

实例 PKIXCertPathBuilderResult由返回 build的方法 CertPathBuilder实施PKIX算法对象。

所有 PKIXCertPathBuilderResult对象都包含由构建算法构建的证书路径,构建算法产生的有效策略树和主体公钥以及描述作为证书路径的信任锚点的证书颁发机构(CA)的 TrustAnchor 。

并发访问

除非另有说明,否则此类中定义的方法不是线程安全的。 需要同时访问单个对象的多个线程应该自己同步并提供必要的锁定。 每个操作单独对象的多个线程不需要同步。

也可以看看:

摘要(Summary)

Public constructors

PKIXCertPathBuilderResult(CertPath certPath, TrustAnchor trustAnchor, PolicyNode policyTree, PublicKey subjectPublicKey)

创建一个包含指定参数的实例 PKIXCertPathBuilderResult 。

公共方法(Public methods)

CertPath getCertPath()

返回已构建和验证的认证路径。

String toString()

返回此 PKIXCertPathBuilderResult的可打印表示。

继承方法(Inherited methods)

From class java.security.cert.PKIXCertPathValidatorResult
From class java.lang.Object
From interface java.security.cert.CertPathValidatorResult
From interface java.security.cert.CertPathBuilderResult

Public constructors

PKIXCertPathBuilderResult

Added in API level 1
PKIXCertPathBuilderResult (CertPath certPath, 
                TrustAnchor trustAnchor, 
                PolicyNode policyTree, 
                PublicKey subjectPublicKey)

创建一个包含指定参数的实例 PKIXCertPathBuilderResult 。

参数(Parameters)
certPath CertPath: the validated CertPath
trustAnchor TrustAnchor: a TrustAnchor describing the CA that served as a trust anchor for the certification path
policyTree PolicyNode: the immutable valid policy tree, or null if there are no valid policies
subjectPublicKey PublicKey: the public key of the subject
抛出异常(Throws)
NullPointerException if the certPath, trustAnchor or subjectPublicKey parameters are null

公共方法(Public methods)

getCertPath

Added in API level 1
CertPath getCertPath ()

返回已构建和验证的认证路径。 CertPath对象不包含信任锚点。 而是使用getTrustAnchor()方法来获取TrustAnchor证书路径的信任锚点的TrustAnchor 。

返回(Returns)
CertPath the built and validated CertPath (never null)

toString

Added in API level 1
String toString ()

返回此 PKIXCertPathBuilderResult的可打印表示。

返回(Returns)
String a String describing the contents of this PKIXCertPathBuilderResult

Hooray!