- java.lang.Object
-
- java.security.KeyStore.TrustedCertificateEntry
-
- 实现的所有接口
-
KeyStore.Entry
- Enclosing class:
- KeyStore
public static final class KeyStore.TrustedCertificateEntry extends Object implements KeyStore.Entry
KeyStore条目,包含受信任的Certificate。- 从以下版本开始:
- 1.5
-
-
嵌套类汇总
-
Nested classes/interfaces declared in interface java.security.KeyStore.Entry
KeyStore.Entry.Attribute
-
-
构造方法摘要
构造方法 构造器 描述 TrustedCertificateEntry(Certificate trustedCert)构造一个TrustedCertificateEntry与信任的Certificate。TrustedCertificateEntry(Certificate trustedCert, Set<KeyStore.Entry.Attribute> attributes)构造一个TrustedCertificateEntry与可信Certificate点相关条目中的属性。
-
方法摘要
所有方法 实例方法 具体的方法 变量和类型 方法 描述 Set<KeyStore.Entry.Attribute>getAttributes()检索与条目关联的属性。CertificategetTrustedCertificate()从此条目获取受信任的Certficate。StringtoString()返回此TrustedCertificateEntry的字符串表示形式。
-
-
-
构造方法详细信息
-
TrustedCertificateEntry
public TrustedCertificateEntry(Certificate trustedCert)
构造一个TrustedCertificateEntry与信任的Certificate。- 参数
-
trustedCert- 值得信赖的Certificate - 异常
-
NullPointerException- 如果trustedCert是null
-
TrustedCertificateEntry
public TrustedCertificateEntry(Certificate trustedCert, Set<KeyStore.Entry.Attribute> attributes)
使用受信任的Certificate和关联的条目属性构造TrustedCertificateEntry。指定的
attributes在存储到新的TrustedCertificateEntry对象之前进行克隆。- 参数
-
trustedCert- 值得信赖的Certificate -
attributes- 属性 - 异常
-
NullPointerException- 如果trustedCert或attributes是null - 从以下版本开始:
- 1.8
-
-
方法详细信息
-
getTrustedCertificate
public Certificate getTrustedCertificate()
从此条目获取受信任的Certficate。- 结果
-
来自此条目的受信任的
Certificate
-
getAttributes
public Set<KeyStore.Entry.Attribute> getAttributes()
检索与条目关联的属性。- Specified by:
-
getAttributes接口KeyStore.Entry - 结果
-
不可修改的
Set属性,可能为空 - 从以下版本开始:
- 1.8
-
-