- java.lang.Object
-
- java.security.KeyStore.TrustedCertificateEntry
-
- All Implemented Interfaces:
-
KeyStore.Entry
- Enclosing class:
- KeyStore
public static final class KeyStore.TrustedCertificateEntry extends Object implements KeyStore.Entry
AKeyStore条目,其中包含受信任的Certificate。- 从以下版本开始:
- 1.5
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface java.security.KeyStore.Entry
KeyStore.Entry.Attribute
-
-
构造方法摘要
构造方法 Constructor 描述 TrustedCertificateEntry(Certificate trustedCert)构造一个TrustedCertificateEntry与一个值得信赖的Certificate。TrustedCertificateEntry(Certificate trustedCert, Set<KeyStore.Entry.Attribute> attributes)构造一个TrustedCertificateEntry具有可信赖的Certificate和相关联的条目属性。
-
方法摘要
所有方法 接口方法 具体的方法 Modifier and Type 方法 描述 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)
构造一个TrustedCertificateEntry具有可信赖的Certificate和相关联的条目属性。指定的
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
-
-