Package org.apache.camel.converter.crypto

Examples of org.apache.camel.converter.crypto.CryptoDataFormat


*/
public class EncryptionDynamicRouteBuilder extends RouteBuilder {

    @Override
    public void configure() throws Exception {
        final CryptoDataFormat crypto = new CryptoDataFormat("DES", null);

        from("direct:encrypt")
            .process(new Processor() {
                @Override
                public void process(Exchange exchange) throws Exception {
View Full Code Here


        this.sharedKey = sharedKey;
    }

    @Override
    public void configure() throws Exception {
        CryptoDataFormat sharedKeyCrypto = new CryptoDataFormat("DES", sharedKey);

        from("direct:encrypt")
            .log("Encrypting message")
            .marshal(sharedKeyCrypto)
            .log("Message encrypted: ${body}")
View Full Code Here

TOP

Related Classes of org.apache.camel.converter.crypto.CryptoDataFormat

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.