Package | Description |
---|---|
java.security |
Contains core language classes related to permission management.
|
javax.crypto | |
javax.crypto.spec |
Modifier and Type | Interface and Description |
---|---|
interface |
PrivateKey
A private key.
|
interface |
PublicKey
A public key.
|
Modifier and Type | Method and Description |
---|---|
abstract Key |
KeyStoreSpi.engineGetKey(java.lang.String alias,
char[] password)
Returns the key associated with the given alias, using the given password to recover it.
|
Key |
KeyStore.getKey(java.lang.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
A secret (symmetric) key.
|
Modifier and Type | Method and Description |
---|---|
Key |
Cipher.unwrap(byte[] wrappedKey,
java.lang.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.
|