| Package | Description | 
|---|---|
| java.security | |
| javax.crypto | |
| javax.crypto.spec | 
| Modifier and Type | Interface and Description | 
|---|---|
interface  | 
PrivateKey  | 
interface  | 
PublicKey  | 
| Modifier and Type | Method and Description | 
|---|---|
abstract Key | 
KeyStoreSpi.engineGetKey(String alias,
            char[] password)
Returns the key associated with the given alias, using the given password to recover it. 
 | 
Key | 
KeyStore.getKey(String alias,
      char[] password)
Returns the key associated with the given alias, using the given password to recover it. 
 | 
| Modifier and Type | Interface and Description | 
|---|---|
interface  | 
SecretKey  | 
| Modifier and Type | Method and Description | 
|---|---|
Key | 
Cipher.unwrap(byte[] wrappedKey,
      String wrappedKeyAlgorithm,
      int wrappedKeyType)
Unwrap a previously wrapped key. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
Cipher.init(int opmode,
    Key key)
Initializes this cipher with a key. 
 | 
void | 
Cipher.init(int opmode,
    Key key,
    AlgorithmParameterSpec params)
Initializes this cipher with a key and a set of algorithm parameters. 
 | 
void | 
Cipher.init(int opmode,
    Key key,
    AlgorithmParameterSpec params,
    SecureRandom random)
Initializes this cipher with a key, a set of algorithm parameters, and a source of randomness. 
 | 
void | 
Cipher.init(int opmode,
    Key key,
    SecureRandom random)
Initializes this cipher with a key and a source of randomness. 
 | 
void | 
Mac.init(Key key)
Initializes this  
Mac object with the given key. | 
void | 
Mac.init(Key key,
    AlgorithmParameterSpec params)
Initializes this  
Mac object with the given key and algorithm parameters. | 
byte[] | 
Cipher.wrap(Key key)
Wrap a key. 
 | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
SecretKeySpec
This class specifies a secret key in a provider-independent fashion. 
 |