org.apache.camel.converter.crypto.CryptoDataFormatConfigurer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of camel-crypto Show documentation
Show all versions of camel-crypto Show documentation
Camel Cryptographic Support
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.converter.crypto;
import javax.annotation.processing.Generated;
import java.util.HashMap;
import java.util.Map;
import org.apache.camel.CamelContext;
import org.apache.camel.spi.GeneratedPropertyConfigurer;
import org.apache.camel.support.component.PropertyConfigurerSupport;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
public class CryptoDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
@Override
public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
CryptoDataFormat dataformat = (CryptoDataFormat) target;
switch (ignoreCase ? name.toLowerCase() : name) {
case "algorithm": dataformat.setAlgorithm(property(camelContext, java.lang.String.class, value)); return true;
case "cryptoprovider":
case "cryptoProvider": dataformat.setCryptoProvider(property(camelContext, java.lang.String.class, value)); return true;
case "buffersize":
case "bufferSize": dataformat.setBufferSize(property(camelContext, int.class, value)); return true;
case "macalgorithm":
case "macAlgorithm": dataformat.setMacAlgorithm(property(camelContext, java.lang.String.class, value)); return true;
case "shouldappendhmac":
case "shouldAppendHMAC": dataformat.setShouldAppendHMAC(property(camelContext, boolean.class, value)); return true;
default: return false;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy