java命名空间java.security.cert类pkixparameters的类成员方法:
pkixparameters定义及介绍
本文导语:
pkixparameters
public pkixparameters(keystore keystore)
throws keystoreexception,
invalidalgorithmparameterexception
创建一个 pkixparameters 实例,它根据指定 keystore 中所包含的受信证书项生成最受信任的 ca 集。只考虑那些包...
pkixparameters
public pkixparameters(keystore keystore)
throws keystoreexception,
invalidalgorithmparameterexception
- 创建一个
pkixparameters 实例,它根据指定 keystore 中所包含的受信证书项生成最受信任的 ca 集。只考虑那些包含受信 x509certificates 的 keystore 项;忽略所有其他证书类型。
- 参数:
keystore - 一个 keystore,将根据它来生成最受信任的 ca 集
- 抛出:
keystoreexception - 如果尚未初始化 keystore
invalidalgorithmparameterexception - 如果 keystore 不包含一个受信证书项
nullpointerexception - 如果 keystore 为 null
gettrustanchors
public set gettrustanchors()
- 返回不可变的、最受信任的 ca
set。
- 返回:
- 不可变的
trustanchor set(从不为 null) - 另请参见:
settrustanchors(java.util.set)