public class SymmetricCryptoEngineFactory extends Object implements SymmetricEncryptionEngineFactory
EncryptionEngine implementation for symmetric algorithms.| Constructor and Description |
|---|
SymmetricCryptoEngineFactory(String algorithmName,
String keyAlgorithmName)
Creates a new engine factory for given algorithm.
|
| Modifier and Type | Method and Description |
|---|---|
EncryptionEngine |
newEngine(byte[] keyPassword,
byte[] keySalt,
int keyHashIterations,
int keySize)
Creates a new encryption engine.
|
public SymmetricCryptoEngineFactory(String algorithmName, String keyAlgorithmName)
algorithmName - full name of algorithm (with mode of operation and padding)keyAlgorithmName - full name of algorithm for key derivationpublic EncryptionEngine newEngine(byte[] keyPassword, byte[] keySalt, int keyHashIterations, int keySize)
SymmetricEncryptionEngineFactorynewEngine in interface SymmetricEncryptionEngineFactorykeyPassword - password for generation of encryption keykeySalt - salt for generation of encryption keykeyHashIterations - count of hash function iterations for generation of encryption keykeySize - size of the keyCopyright © 2016. All rights reserved.