public static final class KeyStore.SecretKeyEntry extends Objectimplements KeyStore .Entry
KeyStore entry that holds a
SecretKey.
KeyStore.Entry.Attribute | Constructor and Description |
|---|
SecretKeyEntry(SecretKey
Constructs a
SecretKeyEntry with a
SecretKey.
|
SecretKeyEntry(SecretKey
Constructs a
SecretKeyEntry with a
SecretKey and associated entry attributes.
|
| Modifier and Type | Method and Description |
|---|---|
Set |
getAttributes()
Retrieves the attributes associated with an entry.
|
SecretKey |
getSecretKey()
Gets the
SecretKey from this entry.
|
String |
toString()
Returns a string representation of this SecretKeyEntry.
|
public SecretKeyEntry(SecretKeysecretKey)
SecretKeyEntry with a
SecretKey.
secretKey - the
SecretKey
NullPointerException - if
secretKey is
null
public SecretKeyEntry(SecretKeysecretKey, Set <KeyStore .Entry .Attribute > attributes)
SecretKeyEntry with a
SecretKey and associated entry attributes.
The specified attributes is cloned before it is stored in the new SecretKeyEntry object.
secretKey - the
SecretKey
attributes - the attributes
NullPointerException - if
secretKey or
attributes is
null
public SecretKeygetSecretKey()
SecretKey from this entry.
SecretKey from this entry
public Set<KeyStore .Entry .Attribute > getAttributes()
getAttributes in interface
KeyStore.Entry
Set of attributes, possibly empty