Package com.saperion.common.crypto
Class CipherFactory
- java.lang.Object
-
- com.saperion.common.crypto.CipherFactory
-
public final class CipherFactory extends java.lang.Object
CipherFactory
is a static factory to createCipher
s based on aCipherStrategy
and aKeyDerivationAlgorithm
.- Author:
- agz
- See Also:
Cipher
,CipherStrategy
,KeyDerivationAlgorithm
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Cipher
newCipher(CipherStrategy cipherStrategy, KeyDerivationAlgorithm keyDerivationAlgorithm)
-
-
-
Method Detail
-
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
-
-