Package com.saperion.common.crypto
Class CipherFactory
java.lang.Object
com.saperion.common.crypto.CipherFactory
CipherFactory is a static factory to create Ciphers based on a CipherStrategy and a
KeyDerivationAlgorithm.- Author:
- agz
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic CiphernewCipher(CipherStrategy cipherStrategy, KeyDerivationAlgorithm keyDerivationAlgorithm)
-
Method Details
-
newCipher
public static Cipher newCipher(CipherStrategy cipherStrategy, KeyDerivationAlgorithm keyDerivationAlgorithm) Creates a newCipherbased on the specifiedCipherStrategyandKeyDerivationAlgorithm. The specifiedCipherStrategymust not benull. The specifiedKeyDerivationAlgorithmmust not benull.- Parameters:
cipherStrategy-CipherStrategyof the newCipherkeyDerivationAlgorithm-KeyDerivationAlgorithmof the newCipher- Returns:
- new
Cipher
-