public static final class KeyStore.TrustedCertificateEntry extends Object implements KeyStore.Entry
KeyStore条目,持有一个值得信赖的
Certificate 。
KeyStore.Entry.Attribute| Constructor and Description |
|---|
TrustedCertificateEntry(Certificate trustedCert)
构造一个
TrustedCertificateEntry与可信
Certificate 。
|
TrustedCertificateEntry(Certificate trustedCert, Set<KeyStore.Entry.Attribute> attributes)
构造一个
TrustedCertificateEntry与可信
Certificate点相关条目中的属性。
|
| Modifier and Type | Method and Description |
|---|---|
Set<KeyStore.Entry.Attribute> |
getAttributes()
检索与条目关联的属性。
|
Certificate |
getTrustedCertificate()
从此条目获取值得信赖的
Certficate 。
|
String |
toString()
返回此TrustedCertificateEntry的字符串表示形式。
|
public TrustedCertificateEntry(Certificate trustedCert)
TrustedCertificateEntry与一个值得信赖的
Certificate 。
trustedCert - 值得信赖的
Certificate
NullPointerException - 如果
trustedCert是
null
public TrustedCertificateEntry(Certificate trustedCert, Set<KeyStore.Entry.Attribute> attributes)
TrustedCertificateEntry与可信Certificate和相关联的条目属性。
指定的attributes被存储在新的TrustedCertificateEntry对象之前被克隆。
trustedCert - 值得信赖的
Certificate
attributes - 属性
NullPointerException - 如果
trustedCert或
attributes是
null
public Certificate getTrustedCertificate()
Certficate 。
Certificate
public Set<KeyStore.Entry.Attribute> getAttributes()
getAttributes在接口
KeyStore.Entry
Set的Set属性,可能是空的
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.