org.apache.camel.converter.crypto
Class CryptoDataFormat

java.lang.Object
  extended by org.apache.camel.converter.crypto.CryptoDataFormat
All Implemented Interfaces:
org.apache.camel.spi.DataFormat

public class CryptoDataFormat
extends Object
implements org.apache.camel.spi.DataFormat

CryptoDataFormat uses a specified key and algorithm to encrypt, decrypt and verify exchange payloads. The Data format allows an initialization vector to be supplied. The use of this initialization vector or IV is different depending on the algorithm type block or streaming, but it is desirable to be able to control it. Also in certain cases it may be necessary to have access to the IV in the decryption phase and as the IV doens't necessarily need to be kept secret it is ok to inline this in the stream and read it out on the other side prior to decryption. For more information on Initialization vectors see