java.lang.Object
java.security.KeyStore.TrustedCertificateEntry
- 所有已实现的接口:
-
KeyStore.Entry
- 封闭类:
-
KeyStore
一个持有受信任的
Certificate的KeyStore条目。
- 自版本:
- 1.5
-
Nested Class Summary
Nested classes/interfaces declared in interface java.security.KeyStore.Entry
KeyStore.Entry.Attribute -
Constructor Summary
ConstructorsConstructorDescriptionTrustedCertificateEntry(Certificate trustedCert) 用受信任的Certificate构造一个TrustedCertificateEntry。TrustedCertificateEntry(Certificate trustedCert, Set<KeyStore.Entry.Attribute> attributes) 用受信任的Certificate和相关的条目属性构造一个TrustedCertificateEntry。 -
Method Summary
Modifier and TypeMethodDescription检索与条目关联的属性。从此条目获取受信任的Certificate。toString()返回此TrustedCertificateEntry的字符串表示形式。
-
Constructor Details
-
TrustedCertificateEntry
用受信任的Certificate构造一个TrustedCertificateEntry。- 参数:
-
trustedCert- 受信任的Certificate - 抛出:
-
NullPointerException- 如果trustedCert为null
-
TrustedCertificateEntry
用受信任的Certificate和相关的条目属性构造一个TrustedCertificateEntry。在存储到新的
TrustedCertificateEntry对象之前,指定的attributes会被克隆。- 参数:
-
trustedCert- 受信任的Certificate -
attributes- 属性 - 抛出:
-
NullPointerException- 如果trustedCert或attributes为null - 自版本:
- 1.8
-
-
Method Details
-
getTrustedCertificate
从此条目获取受信任的Certificate。- 返回:
-
此条目的受信任的
Certificate
-
getAttributes
检索与条目关联的属性。- 指定者:
-
getAttributes在接口KeyStore.Entry - 返回:
-
一个不可修改的属性
Set,可能为空 - 自版本:
- 1.8
-
toString
返回此TrustedCertificateEntry的字符串表示形式。
-