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