public static final class KeyStore.SecretKeyEntry extends Object implements KeyStore.Entry
KeyStore条目,持有一个
SecretKey 。
KeyStore.Entry.Attribute| Constructor and Description |
|---|
SecretKeyEntry(SecretKey secretKey)
构造一个
SecretKeyEntry与
SecretKey 。
|
SecretKeyEntry(SecretKey secretKey, Set<KeyStore.Entry.Attribute> attributes)
构造一个
SecretKeyEntry与
SecretKey点相关条目中的属性。
|
| Modifier and Type | Method and Description |
|---|---|
Set<KeyStore.Entry.Attribute> |
getAttributes()
检索与条目关联的属性。
|
SecretKey |
getSecretKey()
从此条目获取
SecretKey 。
|
String |
toString()
返回此SecretKeyEntry的字符串表示形式。
|
public SecretKeyEntry(SecretKey secretKey)
SecretKeyEntry与
SecretKey 。
secretKey -
SecretKey
NullPointerException - 如果
secretKey是
null
public SecretKeyEntry(SecretKey secretKey, Set<KeyStore.Entry.Attribute> attributes)
SecretKeyEntry与SecretKey点相关条目中的属性。
指定的attributes在存储在新的SecretKeyEntry对象之前被克隆。
secretKey -
SecretKey
attributes - 属性
NullPointerException - 如果
secretKey或
attributes是
null
public SecretKey getSecretKey()
SecretKey 。
SecretKey
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.