JavaTM Platform
Standard Ed. 6

类 java.security.cert.CertPath
的使用

使用 CertPath 的软件包
java.security 为安全框架提供类和接口。 
java.security.cert 提供用于解析和管理证书、证书撤消列表 (CRL) 和证书路径的类和接口。 
 

java.security 中 CertPath 的使用
 

返回 CertPath 的 java.security 中的方法
 CertPath Timestamp.getSignerCertPath()
          返回 Timestamping Authority 的证书路径。
 CertPath CodeSigner.getSignerCertPath()
          返回签名者的证书路径。
 

参数类型为 CertPath 的 java.security 中的构造方法
CodeSigner(CertPath signerCertPath, Timestamp timestamp)
          构造 CodeSigner 对象。
Timestamp(Date timestamp, CertPath signerCertPath)
          构造一个时间戳。
 

java.security.cert 中 CertPath 的使用
 

返回 CertPath 的 java.security.cert 中的方法
 CertPath CertificateFactorySpi.engineGenerateCertPath(InputStream inStream)
          生成一个 CertPath 对象,并使用从 InputStream inStream 中读取的数据对它进行初始化。
 CertPath CertificateFactorySpi.engineGenerateCertPath(InputStream inStream, String encoding)
          生成一个 CertPath 对象,并使用从 InputStream inStream 中读取的数据对它进行初始化。
 CertPath CertificateFactorySpi.engineGenerateCertPath(List<? extends Certificate> certificates)
          生成一个 CertPath 对象,并使用 Certificate 的 List 对它进行初始化。
 CertPath CertificateFactory.generateCertPath(InputStream inStream)
          生成一个 CertPath 对象,并使用从 InputStream inStream 中读取的数据对它进行初始化。
 CertPath CertificateFactory.generateCertPath(InputStream inStream, String encoding)
          生成一个 CertPath 对象,并使用从 InputStream inStream 中读取的数据对它进行初始化。
 CertPath CertificateFactory.generateCertPath(List<? extends Certificate> certificates)
          生成一个 CertPath 对象,并使用一个 Certificate 的 List 对它进行初始化。
 CertPath CertPathBuilderResult.getCertPath()
          返回已构建的证书路径。
 CertPath CertPathValidatorException.getCertPath()
          返回抛出异常时正在验证的证书路径
 CertPath PKIXCertPathBuilderResult.getCertPath()
          返回已构建并已验证的证书路径。
 

参数类型为 CertPath 的 java.security.cert 中的方法
abstract  CertPathValidatorResult CertPathValidatorSpi.engineValidate(CertPath certPath, CertPathParameters params)
          使用指定的算法参数集验证指定的证书路径。
 CertPathValidatorResult CertPathValidator.validate(CertPath certPath, CertPathParameters params)
          使用指定的算法参数集验证指定的证书路径。
 

参数类型为 CertPath 的 java.security.cert 中的构造方法
CertPathValidatorException(String msg, Throwable cause, CertPath certPath, int index)
          创建带指定详细消息、cause、证书路径和索引的 CertPathValidatorException。
PKIXCertPathBuilderResult(CertPath certPath, TrustAnchor trustAnchor, PolicyNode policyTree, PublicKey subjectPublicKey)
          创建包含指定参数的 PKIXCertPathBuilderResult 实例。
 


JavaTM Platform
Standard Ed. 6

提交错误或意见
有关更多的 API 参考资料和开发人员文档,请参阅 Java SE 开发人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作代码示例。

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。