public class PBKDF2WithParameter
extends javax.crypto.KeyGeneratorSpi
| Constructor and Description |
|---|
PBKDF2WithParameter() |
| Modifier and Type | Method and Description |
|---|---|
javax.crypto.SecretKey |
engineGenerateKey()
Generates a secret key.
|
void |
engineInit(java.security.spec.AlgorithmParameterSpec params,
java.security.SecureRandom random)
Initializes the key generator with the specified parameter set and a
user-provided source of randomness.
|
void |
engineInit(int int1,
java.security.SecureRandom secureRandom)
Not supported.
|
void |
engineInit(java.security.SecureRandom secureRandom)
Not supported.
|
public void engineInit(java.security.spec.AlgorithmParameterSpec params,
java.security.SecureRandom random)
throws java.security.InvalidAlgorithmParameterException
engineInit in class javax.crypto.KeyGeneratorSpiparams - the key generation parametersrandom - the source of randomness for this key generatorjava.security.InvalidAlgorithmParameterException - if params is inappropriate for this key
generatorpublic javax.crypto.SecretKey engineGenerateKey()
engineGenerateKey in class javax.crypto.KeyGeneratorSpiInternalErrorException - if the Password or salt is nullpublic void engineInit(int int1,
java.security.SecureRandom secureRandom)
engineInit in class javax.crypto.KeyGeneratorSpikeysize - [FIPS 140-2 data input] the keysize. This is an
algorithm-specific metric, specified in number of bits.random - the source of randomness for this key generatorInternalErrorException - always thrownpublic void engineInit(java.security.SecureRandom secureRandom)
engineInit in class javax.crypto.KeyGeneratorSpisecureRandom - The RandomNumberGeneratorInternalErrorException