java.security
public static final class: KeyStore.SecretKeyEntry [javadoc |
source]
java.lang.Object
java.security.KeyStore$SecretKeyEntry
All Implemented Interfaces:
Entry
A
KeyStore
entry that holds a
SecretKey
.
Constructor: |
public SecretKeyEntry(SecretKey secretKey) {
if (secretKey == null) {
throw new NullPointerException("invalid null input");
}
this.sKey = secretKey;
}
Constructs a SecretKeyEntry with a
SecretKey . Parameters:
secretKey - the SecretKey
Throws:
NullPointerException - if secretKey
is null
- exception:
NullPointerException - if secretKey
is null
|
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from java.security.KeyStore$SecretKeyEntry Detail: |
public SecretKey getSecretKey() {
return sKey;
}
Gets the SecretKey from this entry. |
public String toString() {
return "Secret key entry with algorithm " + sKey.getAlgorithm();
}
Returns a string representation of this SecretKeyEntry. |