public class PBKDF2KeyFactory extends PBEKeyFactory
| Constructor and Description |
|---|
PBKDF2KeyFactory(String algorithm,
byte[] keyPassword,
int keyLength,
byte[] keySalt,
int iterationsCount)
Creates a new PBKDF2 key factory.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getAlgorithmName()
Gets a name of algorithm for which PBE key should be provided.
|
getKeypublic PBKDF2KeyFactory(String algorithm, byte[] keyPassword, int keyLength, byte[] keySalt, int iterationsCount)
algorithm - name of encryption algorithm for which key will be generatedkeyPassword - password for key derivationkeySalt - salt for key derivationiterationsCount - count of iterations for key derivationkeyLength - length of desired keyprotected String getAlgorithmName()
PBEKeyFactorygetAlgorithmName in class PBEKeyFactoryCopyright © 2014. All rights reserved.