public final class PBKDF2KeyFactory extends Object implements KeyFactory<Key>
| Modifier | Constructor and Description |
|---|---|
protected |
PBKDF2KeyFactory(String encryptionAlgorithmName,
byte[] keyPassword,
int keyLength,
byte[] keySalt,
int iterationsCount)
Creates a new PBKDF2 key factory.
|
protected PBKDF2KeyFactory(String encryptionAlgorithmName, byte[] keyPassword, int keyLength, byte[] keySalt, int iterationsCount)
encryptionAlgorithmName - 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 keypublic Key getKey() throws EncryptionException
KeyFactorygetKey in interface KeyFactory<Key>EncryptionException - possible exception if key cannot be constructedCopyright © 2016. All rights reserved.