Most visited

Recently visited

Added in API level 1

PKIXCertPathValidatorResult

public class PKIXCertPathValidatorResult
extends Object implements CertPathValidatorResult

java.lang.Object
    java.security.cert.PKIXCertPathValidatorResult
Known Direct Subclasses


该类表示PKIX证书路径验证算法的成功结果。

实例 PKIXCertPathValidatorResult由返回 validate的方法 CertPathValidator实施PKIX算法对象。

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

并发访问

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

也可以看看:

摘要(Summary)

Public constructors

PKIXCertPathValidatorResult(TrustAnchor trustAnchor, PolicyNode policyTree, PublicKey subjectPublicKey)

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

公共方法(Public methods)

Object clone()

返回此对象的副本。

PolicyNode getPolicyTree()

返回由PKIX证书路径验证算法产生的有效策略树的根节点。

PublicKey getPublicKey()

返回证书路径主题(目标)的公钥,包括任何继承的公共密钥参数(如果适用)。

TrustAnchor getTrustAnchor()

返回描述充当认证路径的信任锚点的CA的 TrustAnchor 。

String toString()

返回此 PKIXCertPathValidatorResult的可打印表示。

继承方法(Inherited methods)

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

Public constructors

PKIXCertPathValidatorResult

Added in API level 1
PKIXCertPathValidatorResult (TrustAnchor trustAnchor, 
                PolicyNode policyTree, 
                PublicKey subjectPublicKey)

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

参数(Parameters)
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 subjectPublicKey or trustAnchor parameters are null

公共方法(Public methods)

clone

Added in API level 1
Object clone ()

返回此对象的副本。

返回(Returns)
Object the copy

getPolicyTree

Added in API level 1
PolicyNode getPolicyTree ()

返回由PKIX证书路径验证算法产生的有效策略树的根节点。 返回的PolicyNode对象以及它通过公共方法返回的所有对象都是不可变的。

大多数应用程序不需要检查有效的策略树。 他们可以通过在PKIXParameters设置策略相关参数来实现其策略处理目标。 但是,更复杂的应用程序(尤其是处理策略限定符的应用程序)可能需要使用PolicyNode.getParent和PolicyNode.getChildren方法遍历有效的策略树。

返回(Returns)
PolicyNode the root node of the valid policy tree, or null if there are no valid policies

getPublicKey

Added in API level 1
PublicKey getPublicKey ()

返回证书路径主题(目标)的公钥,包括任何继承的公共密钥参数(如果适用)。

返回(Returns)
PublicKey the public key of the subject (never null)

getTrustAnchor

Added in API level 1
TrustAnchor getTrustAnchor ()

返回描述充当认证路径的信任锚点的CA的 TrustAnchor 。

返回(Returns)
TrustAnchor the TrustAnchor (never null)

toString

Added in API level 1
String toString ()

返回此 PKIXCertPathValidatorResult的可打印表示。

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

Hooray!