All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.camel.component.crypto.DigitalSignatureEndpointConfigurer Maven / Gradle / Ivy

There is a newer version: 4.9.0
Show newest version
/* Generated by org.apache.camel:apt */
package org.apache.camel.component.crypto;

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;

/**
 * Source code generated by org.apache.camel:apt
 */
@SuppressWarnings("unchecked")
public class DigitalSignatureEndpointConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {

    @Override
    public boolean configure(CamelContext camelContext, Object endpoint, String name, Object value, boolean ignoreCase) {
        if (ignoreCase) {
            return doConfigureIgnoreCase(camelContext, endpoint, name, value);
        } else {
            return doConfigure(camelContext, endpoint, name, value);
        }
    }

    private static boolean doConfigure(CamelContext camelContext, Object endpoint, String name, Object value) {
        switch (name) {
        case "privateKey": ((DigitalSignatureEndpoint) endpoint).getConfiguration().setPrivateKey(property(camelContext, java.security.PrivateKey.class, value)); return true;
        case "keyStoreParameters": ((DigitalSignatureEndpoint) endpoint).getConfiguration().setKeyStoreParameters(property(camelContext, org.apache.camel.support.jsse.KeyStoreParameters.class, value)); return true;
        case "keystore": ((DigitalSignatureEndpoint) endpoint).getConfiguration().setKeystore(property(camelContext, java.security.KeyStore.class, value)); return true;
        case "secureRandom": ((DigitalSignatureEndpoint) endpoint).getConfiguration().setSecureRandom(property(camelContext, java.security.SecureRandom.class, value)); return true;
        case "algorithm": ((DigitalSignatureEndpoint) endpoint).getConfiguration().setAlgorithm(property(camelContext, java.lang.String.class, value)); return true;
        case "bufferSize": ((DigitalSignatureEndpoint) endpoint).getConfiguration().setBufferSize(property(camelContext, java.lang.Integer.class, value)); return true;
        case "provider": ((DigitalSignatureEndpoint) endpoint).getConfiguration().setProvider(property(camelContext, java.lang.String.class, value)); return true;
        case "signatureHeaderName": ((DigitalSignatureEndpoint) endpoint).getConfiguration().setSignatureHeaderName(property(camelContext, java.lang.String.class, value)); return true;
        case "alias": ((DigitalSignatureEndpoint) endpoint).getConfiguration().setAlias(property(camelContext, java.lang.String.class, value)); return true;
        case "password": ((DigitalSignatureEndpoint) endpoint).getConfiguration().setPassword(property(camelContext, java.lang.String.class, value)); return true;
        case "publicKey": ((DigitalSignatureEndpoint) endpoint).getConfiguration().setPublicKey(property(camelContext, java.security.PublicKey.class, value)); return true;
        case "certificate": ((DigitalSignatureEndpoint) endpoint).getConfiguration().setCertificate(property(camelContext, java.security.cert.Certificate.class, value)); return true;
        case "publicKeyName": ((DigitalSignatureEndpoint) endpoint).getConfiguration().setPublicKeyName(property(camelContext, java.lang.String.class, value)); return true;
        case "certificateName": ((DigitalSignatureEndpoint) endpoint).getConfiguration().setCertificateName(property(camelContext, java.lang.String.class, value)); return true;
        case "privateKeyName": ((DigitalSignatureEndpoint) endpoint).getConfiguration().setPrivateKeyName(property(camelContext, java.lang.String.class, value)); return true;
        case "keystoreName": ((DigitalSignatureEndpoint) endpoint).getConfiguration().setKeystoreName(property(camelContext, java.lang.String.class, value)); return true;
        case "secureRandomName": ((DigitalSignatureEndpoint) endpoint).getConfiguration().setSecureRandomName(property(camelContext, java.lang.String.class, value)); return true;
        case "clearHeaders": ((DigitalSignatureEndpoint) endpoint).getConfiguration().setClearHeaders(property(camelContext, boolean.class, value)); return true;
        case "lazyStartProducer": ((DigitalSignatureEndpoint) endpoint).setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
        case "bridgeErrorHandler": ((DigitalSignatureEndpoint) endpoint).setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
        case "exceptionHandler": ((DigitalSignatureEndpoint) endpoint).setExceptionHandler(property(camelContext, org.apache.camel.spi.ExceptionHandler.class, value)); return true;
        case "exchangePattern": ((DigitalSignatureEndpoint) endpoint).setExchangePattern(property(camelContext, org.apache.camel.ExchangePattern.class, value)); return true;
        case "synchronous": ((DigitalSignatureEndpoint) endpoint).setSynchronous(property(camelContext, boolean.class, value)); return true;
        case "basicPropertyBinding": ((DigitalSignatureEndpoint) endpoint).setBasicPropertyBinding(property(camelContext, boolean.class, value)); return true;
            default: return false;
        }
    }

    private static boolean doConfigureIgnoreCase(CamelContext camelContext, Object endpoint, String name, Object value) {
        switch (name.toLowerCase()) {
        case "privatekey": ((DigitalSignatureEndpoint) endpoint).getConfiguration().setPrivateKey(property(camelContext, java.security.PrivateKey.class, value)); return true;
        case "keystoreparameters": ((DigitalSignatureEndpoint) endpoint).getConfiguration().setKeyStoreParameters(property(camelContext, org.apache.camel.support.jsse.KeyStoreParameters.class, value)); return true;
        case "keystore": ((DigitalSignatureEndpoint) endpoint).getConfiguration().setKeystore(property(camelContext, java.security.KeyStore.class, value)); return true;
        case "securerandom": ((DigitalSignatureEndpoint) endpoint).getConfiguration().setSecureRandom(property(camelContext, java.security.SecureRandom.class, value)); return true;
        case "algorithm": ((DigitalSignatureEndpoint) endpoint).getConfiguration().setAlgorithm(property(camelContext, java.lang.String.class, value)); return true;
        case "buffersize": ((DigitalSignatureEndpoint) endpoint).getConfiguration().setBufferSize(property(camelContext, java.lang.Integer.class, value)); return true;
        case "provider": ((DigitalSignatureEndpoint) endpoint).getConfiguration().setProvider(property(camelContext, java.lang.String.class, value)); return true;
        case "signatureheadername": ((DigitalSignatureEndpoint) endpoint).getConfiguration().setSignatureHeaderName(property(camelContext, java.lang.String.class, value)); return true;
        case "alias": ((DigitalSignatureEndpoint) endpoint).getConfiguration().setAlias(property(camelContext, java.lang.String.class, value)); return true;
        case "password": ((DigitalSignatureEndpoint) endpoint).getConfiguration().setPassword(property(camelContext, java.lang.String.class, value)); return true;
        case "publickey": ((DigitalSignatureEndpoint) endpoint).getConfiguration().setPublicKey(property(camelContext, java.security.PublicKey.class, value)); return true;
        case "certificate": ((DigitalSignatureEndpoint) endpoint).getConfiguration().setCertificate(property(camelContext, java.security.cert.Certificate.class, value)); return true;
        case "publickeyname": ((DigitalSignatureEndpoint) endpoint).getConfiguration().setPublicKeyName(property(camelContext, java.lang.String.class, value)); return true;
        case "certificatename": ((DigitalSignatureEndpoint) endpoint).getConfiguration().setCertificateName(property(camelContext, java.lang.String.class, value)); return true;
        case "privatekeyname": ((DigitalSignatureEndpoint) endpoint).getConfiguration().setPrivateKeyName(property(camelContext, java.lang.String.class, value)); return true;
        case "keystorename": ((DigitalSignatureEndpoint) endpoint).getConfiguration().setKeystoreName(property(camelContext, java.lang.String.class, value)); return true;
        case "securerandomname": ((DigitalSignatureEndpoint) endpoint).getConfiguration().setSecureRandomName(property(camelContext, java.lang.String.class, value)); return true;
        case "clearheaders": ((DigitalSignatureEndpoint) endpoint).getConfiguration().setClearHeaders(property(camelContext, boolean.class, value)); return true;
        case "lazystartproducer": ((DigitalSignatureEndpoint) endpoint).setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
        case "bridgeerrorhandler": ((DigitalSignatureEndpoint) endpoint).setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
        case "exceptionhandler": ((DigitalSignatureEndpoint) endpoint).setExceptionHandler(property(camelContext, org.apache.camel.spi.ExceptionHandler.class, value)); return true;
        case "exchangepattern": ((DigitalSignatureEndpoint) endpoint).setExchangePattern(property(camelContext, org.apache.camel.ExchangePattern.class, value)); return true;
        case "synchronous": ((DigitalSignatureEndpoint) endpoint).setSynchronous(property(camelContext, boolean.class, value)); return true;
        case "basicpropertybinding": ((DigitalSignatureEndpoint) endpoint).setBasicPropertyBinding(property(camelContext, boolean.class, value)); return true;
            default: return false;
        }
    }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy