Class CipherPair
- java.lang.Object
-
- org.apache.camel.converter.stream.CipherPair
-
public class CipherPair extends Object
A class to hold a pair of encryption and decryption ciphers.
-
-
Constructor Summary
Constructors Constructor Description CipherPair(String transformation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Cipher
createDecryptor()
Create the decryptor every time because the decryptor is not thead safe.Cipher
getEncryptor()
String
getTransformation()
-
-
-
Constructor Detail
-
CipherPair
public CipherPair(String transformation) throws GeneralSecurityException
- Throws:
GeneralSecurityException
-
-
Method Detail
-
getTransformation
public String getTransformation()
-
getEncryptor
public Cipher getEncryptor()
-
createDecryptor
public Cipher createDecryptor()
Create the decryptor every time because the decryptor is not thead safe. For example, if you reuse the decryptor instance in the Multi-cast case then you will get errors.
-
-