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 Details

  • Method Details

    • 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.