Page Edited :
CAMEL :
XMLSecurity DataFormat
XMLSecurity DataFormat has been edited by Ashwin Karpe (Feb 20, 2009). Content:The XMLSecurity DataFormat facilitates encryption and decryption of XML payloads at the Document, Element and Element Content levels (including simultaneous multi-node encryption/decryption using XPATH). The encrytion capability is based on formats supported using the Apache XML Security (Santaurio) project. Encryption/Decryption is "currently" supported using Triple-DES and AES (128, 192 and 256) encryption formats. Additional formats can be easily added later as needed. (Note: The support currently offered is for symmetric encryption. This means the same keyset is needed at both ends of the communication to encrypt/decrypt payloads). The capability allows Camel users to encrypt/decrypt payloads while being dispatched or received along a route. Options
MarshalIn this example we marshal a regular text/XML payload to a compressed payload employing zip compression Deflater.BEST_COMPRESSION and send it an ActiveMQ queue called MY_QUEUE.from("direct:start").marshal().zip(Deflater.BEST_COMPRESSION).to("activemq:queue:MY_QUEUE"); UnmarshalIn this example we unmarshal a zipped payload from an ActiveMQ queue called MY_QUEUE to its original format, and forward it for processing to the UnZippedMessageProcessor. Note that the compression Level employed during the marshalling should be identical to the one employed during unmarshalling to avoid errors.from("activemq:queue:MY_QUEUE").unmarshal().zip().process(new UnZippedMessageProcessor()); DependenciesThis data format is provided in camel-core so no additional dependencies is needed. |
Unsubscribe or edit your notifications preferences