| 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjava.security.cert.PKIXCertPathValidatorResult
java.security.cert.PKIXCertPathBuilderResult
public class PKIXCertPathBuilderResult
此类表示 PKIX 证书路径生成器算法执行成功时所返回的结果。所有使用此算法构建并返回的证书路径都通过了 PKIX 证书路径验证算法的验证。
CertPathBuilder 对象的 build 方法所返回的 PKIXCertPathBuilderResult 实例实现该 PKIX 算法。
所有的 PKIXCertPathBuilderResult 对象都包含由构建算法所构造的证书路径、构建算法生成的有效策略树和主体公钥,以及一个描述作为证书路径受信定位点的证书颁发机构 (CA) 的 TrustAnchor。
 
并发访问
除非另行指定,否则此类中所定义的方法不是线程安全的。需要并发访问单个对象的多个线程应该在它们之间实现同步并提供所需的锁定。对于每个线程都操作一个不同对象的多个线程而言,无需实现同步。
CertPathBuilderResult| 构造方法摘要 | |
|---|---|
| PKIXCertPathBuilderResult(CertPath certPath,
                          TrustAnchor trustAnchor,
                          PolicyNode policyTree,
                          PublicKey subjectPublicKey)创建包含指定参数的 PKIXCertPathBuilderResult实例。 | |
| 方法摘要 | |
|---|---|
|  CertPath | getCertPath()返回已构建并已验证的证书路径。 | 
|  String | toString()返回此 PKIXCertPathBuilderResult的可打印表示形式。 | 
| 从类 java.security.cert.PKIXCertPathValidatorResult 继承的方法 | 
|---|
| clone, getPolicyTree, getPublicKey, getTrustAnchor | 
| 从类 java.lang.Object 继承的方法 | 
|---|
| equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| 从接口 java.security.cert.CertPathBuilderResult 继承的方法 | 
|---|
| clone | 
| 构造方法详细信息 | 
|---|
public PKIXCertPathBuilderResult(CertPath certPath,
                                 TrustAnchor trustAnchor,
                                 PolicyNode policyTree,
                                 PublicKey subjectPublicKey)
PKIXCertPathBuilderResult 实例。
certPath - 已验证的 CertPathtrustAnchor - 描述作为证书路径受信的定位点的 CA 的 TrustAnchorpolicyTree - 不可变的有效策略树,如果没有有效的策略,则为 nullsubjectPublicKey - 主体公钥
NullPointerException - 如果 certPath、trustAnchor 或 subjectPublicKey 参数为 null| 方法详细信息 | 
|---|
public CertPath getCertPath()
CertPath 对象不包括受信的定位点。相反,应使用 getTrustAnchor() 方法来获得作为证书路径受信定位点的 TrustAnchor。
CertPathBuilderResult 中的 getCertPathCertPath(不会为 null)public String toString()
PKIXCertPathBuilderResult 的可打印表示形式。
PKIXCertPathValidatorResult 中的 toStringPKIXCertPathBuilderResult 内容的 String| 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。