Android 2.3 Gingerbread

java.security
Class KeyStore.SecretKeyEntry

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

public static final class KeyStore.SecretKeyEntry
extends Object
implements KeyStore.Entry

SecretKeyEntry represents a KeyStore entry that holds a secret key.


Constructor Summary
KeyStore.SecretKeyEntry(SecretKey secretKey)
          Constructs a new instance of SecretKeyEntry with the given SecretKey.
 
Method Summary
 SecretKey getSecretKey()
          Returns the secret key.
 String toString()
          Returns a string containing a concise, human-readable description of this SecretKeyEntry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KeyStore.SecretKeyEntry

public KeyStore.SecretKeyEntry(SecretKey secretKey)
Constructs a new instance of SecretKeyEntry with the given SecretKey.

Parameters:
secretKey - the secret key.
Throws:
NullPointerException - if secretKey is null.
Method Detail

getSecretKey

public SecretKey getSecretKey()
Returns the secret key.

Returns:
the secret key.

toString

public String toString()
Returns a string containing a concise, human-readable description of this SecretKeyEntry.

Overrides:
toString in class Object
Returns:
a printable representation for this SecretKeyEntry.

Android 2.3 Gingerbread