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