java.security
Class KeyStore.SecretKeyEntry

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.security.KeyStore.SecretKeyEntry
All Implemented Interfaces:
KeyStore.Entry sample code for java.security.KeyStore.Entry definition code for java.security.KeyStore.Entry
Enclosing class:
KeyStore sample code for java.security.KeyStore definition code for java.security.KeyStore

public static final class KeyStore.SecretKeyEntry
extends Object sample code for java.lang.Object definition code for java.lang.Object
implements KeyStore.Entry sample code for java.security.KeyStore.Entry definition code for java.security.KeyStore.Entry

A KeyStore entry that holds a SecretKey.

Since:
1.5

Constructor Summary
KeyStore.SecretKeyEntry sample code for java.security.KeyStore.SecretKeyEntry.KeyStore.SecretKeyEntry(javax.crypto.SecretKey) definition code for java.security.KeyStore.SecretKeyEntry.KeyStore.SecretKeyEntry(javax.crypto.SecretKey) (javax.crypto.SecretKey secretKey)
          Constructs a SecretKeyEntry with a SecretKey.
 
Method Summary
 javax.crypto.SecretKey getSecretKey sample code for java.security.KeyStore.SecretKeyEntry.getSecretKey() definition code for java.security.KeyStore.SecretKeyEntry.getSecretKey() ()
          Gets the SecretKey from this entry.
 String sample code for java.lang.String definition code for java.lang.String toString sample code for java.security.KeyStore.SecretKeyEntry.toString() definition code for java.security.KeyStore.SecretKeyEntry.toString() ()
          Returns a string representation of this SecretKeyEntry.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

KeyStore.SecretKeyEntry sample code for java.security.KeyStore.SecretKeyEntry(javax.crypto.SecretKey) definition code for java.security.KeyStore.SecretKeyEntry(javax.crypto.SecretKey)

public KeyStore.SecretKeyEntry(javax.crypto.SecretKey secretKey)
Constructs a SecretKeyEntry with a SecretKey.

Parameters:
secretKey - the SecretKey
Throws:
NullPointerException sample code for java.lang.NullPointerException definition code for java.lang.NullPointerException - if secretKey is null
Method Detail

getSecretKey sample code for java.security.KeyStore.SecretKeyEntry.getSecretKey() definition code for java.security.KeyStore.SecretKeyEntry.getSecretKey()

public javax.crypto.SecretKey getSecretKey()
Gets the SecretKey from this entry.

Returns:
the SecretKey from this entry

toString sample code for java.security.KeyStore.SecretKeyEntry.toString() definition code for java.security.KeyStore.SecretKeyEntry.toString()

public String sample code for java.lang.String definition code for java.lang.String  toString()
Returns a string representation of this SecretKeyEntry.

Overrides:
toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() in class Object sample code for java.lang.Object definition code for java.lang.Object
Returns:
a string representation of this SecretKeyEntry.