- java.lang.Object
-
- java.security.cert.PKIXCertPathValidatorResult
-
- java.security.cert.PKIXCertPathBuilderResult
-
- All Implemented Interfaces:
-
Cloneable,CertPathBuilderResult,CertPathValidatorResult
public class PKIXCertPathBuilderResult extends PKIXCertPathValidatorResult implements CertPathBuilderResult
此类表示PKIX认证路径构建器算法的成功结果。 使用此算法构建和返回的所有认证路径也将根据PKIX认证路径验证算法进行验证。PKIXCertPathBuilderResult实例由实现PKIX算法的CertPathBuilder对象的build方法返回。所有
PKIXCertPathBuilderResult对象都包含由构建算法构建的认证路径,由构建算法产生的有效策略树和主题公钥,以及TrustAnchor描述作为认证路径的信任锚点的证书颁发机构(CA)。并发访问
除非另有说明,否则此类中定义的方法不是线程安全的。 需要同时访问单个对象的多个线程应在其间同步并提供必要的锁定。 每个操作单独对象的多个线程不需要同步。
- 从以下版本开始:
- 1.4
- 另请参见:
-
CertPathBuilderResult
-
-
构造方法摘要
构造方法 Constructor 描述 PKIXCertPathBuilderResult(CertPath certPath, TrustAnchor trustAnchor, PolicyNode policyTree, PublicKey subjectPublicKey)创建包含指定参数的PKIXCertPathBuilderResult实例。
-
方法摘要
所有方法 接口方法 具体的方法 Modifier and Type 方法 描述 CertPathgetCertPath()返回建立和验证的认证路径。StringtoString()返回此PKIXCertPathBuilderResult的可打印的表示。-
Methods inherited from interface java.security.cert.CertPathBuilderResult
clone
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from class java.security.cert.PKIXCertPathValidatorResult
clone, getPolicyTree, getPublicKey, getTrustAnchor
-
-
-
-
构造方法详细信息
-
PKIXCertPathBuilderResult
public PKIXCertPathBuilderResult(CertPath certPath, TrustAnchor trustAnchor, PolicyNode policyTree, PublicKey subjectPublicKey)
创建包含指定参数的PKIXCertPathBuilderResult实例。- 参数
-
certPath- 经过验证的CertPath -
trustAnchor- 描述作为证书路径的信任锚点的CA的TrustAnchor -
policyTree- 不可变的有效策略树,如果没有有效的策略,null -
subjectPublicKey- 主题的公钥 - 异常
-
NullPointerException-如果certPath,trustAnchor或者subjectPublicKey参数为null
-
-
方法详细信息
-
getCertPath
public CertPath getCertPath()
- Specified by:
-
getCertPath在接口CertPathBuilderResult - 结果
-
内置和验证
CertPath(从不null)
-
toString
public String toString()
返回此PKIXCertPathBuilderResult的可打印表示。- 重写:
-
toString在PKIXCertPathValidatorResult - 结果
-
a
Stringdescribing the contents of thisPKIXCertPathBuilderResult
-
-