Package com.saperion.common.crypto
Class CipherFactory
java.lang.Object
com.saperion.common.crypto.CipherFactory
CipherFactory
is a static factory to create Cipher
s based on a CipherStrategy
and a
KeyDerivationAlgorithm
.- Author:
- agz
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic Cipher
newCipher
(CipherStrategy cipherStrategy, KeyDerivationAlgorithm keyDerivationAlgorithm)
-
Method Details
-
newCipher
public static Cipher newCipher(CipherStrategy cipherStrategy, KeyDerivationAlgorithm keyDerivationAlgorithm) Creates a newCipher
based on the specifiedCipherStrategy
andKeyDerivationAlgorithm
. The specifiedCipherStrategy
must not benull
. The specifiedKeyDerivationAlgorithm
must not benull
.- Parameters:
cipherStrategy
-CipherStrategy
of the newCipher
keyDerivationAlgorithm
-KeyDerivationAlgorithm
of the newCipher
- Returns:
- new
Cipher
-