public static final class KeyStore.SecretKeyEntry extends Object implements KeyStore.Entry
SecretKeyEntry represents a KeyStore entry that
holds a secret key.| Constructor and Description |
|---|
SecretKeyEntry(SecretKey secretKey)
Constructs a new instance of
SecretKeyEntry with the given
SecretKey. |
| Modifier and Type | Method and Description |
|---|---|
SecretKey |
getSecretKey()
Returns the secret key.
|
String |
toString()
Returns a string containing a concise, human-readable description of
this
SecretKeyEntry. |
public SecretKeyEntry(SecretKey secretKey)
SecretKeyEntry with the given
SecretKey.secretKey - the secret key.NullPointerException - if secretKey is null.public SecretKey getSecretKey()