001/* Generated by org.apache.camel:apt */
002package org.apache.camel.model.placeholder;
003
004import java.util.HashMap;
005import java.util.Map;
006import java.util.function.Consumer;
007import java.util.function.Supplier;
008
009import org.apache.camel.CamelContext;
010import org.apache.camel.model.dataformat.XMLSecurityDataFormat;
011import org.apache.camel.spi.PropertyPlaceholderConfigurer;
012
013/**
014 * Source code generated by org.apache.camel:apt
015 */
016public class XMLSecurityDataFormatPropertyPlaceholderProvider implements PropertyPlaceholderConfigurer {
017
018    private final Map<String, Supplier<String>> readPlaceholders = new HashMap<>();
019    private final Map<String, Consumer<String>> writePlaceholders = new HashMap<>();
020
021    public XMLSecurityDataFormatPropertyPlaceholderProvider(Object obj) {
022        XMLSecurityDataFormat definition = (XMLSecurityDataFormat) obj;
023
024        readPlaceholders.put("xmlCipherAlgorithm", definition::getXmlCipherAlgorithm);
025        writePlaceholders.put("xmlCipherAlgorithm", definition::setXmlCipherAlgorithm);
026        readPlaceholders.put("passPhrase", definition::getPassPhrase);
027        writePlaceholders.put("passPhrase", definition::setPassPhrase);
028        readPlaceholders.put("secureTag", definition::getSecureTag);
029        writePlaceholders.put("secureTag", definition::setSecureTag);
030        readPlaceholders.put("keyCipherAlgorithm", definition::getKeyCipherAlgorithm);
031        writePlaceholders.put("keyCipherAlgorithm", definition::setKeyCipherAlgorithm);
032        readPlaceholders.put("recipientKeyAlias", definition::getRecipientKeyAlias);
033        writePlaceholders.put("recipientKeyAlias", definition::setRecipientKeyAlias);
034        readPlaceholders.put("keyOrTrustStoreParametersRef", definition::getKeyOrTrustStoreParametersRef);
035        writePlaceholders.put("keyOrTrustStoreParametersRef", definition::setKeyOrTrustStoreParametersRef);
036        readPlaceholders.put("keyPassword", definition::getKeyPassword);
037        writePlaceholders.put("keyPassword", definition::setKeyPassword);
038        readPlaceholders.put("digestAlgorithm", definition::getDigestAlgorithm);
039        writePlaceholders.put("digestAlgorithm", definition::setDigestAlgorithm);
040        readPlaceholders.put("mgfAlgorithm", definition::getMgfAlgorithm);
041        writePlaceholders.put("mgfAlgorithm", definition::setMgfAlgorithm);
042        readPlaceholders.put("id", definition::getId);
043        writePlaceholders.put("id", definition::setId);
044    }
045
046    @Override
047    public Map<String, Supplier<String>> getReadPropertyPlaceholderOptions(CamelContext camelContext) {
048        return readPlaceholders;
049    }
050
051    @Override
052    public Map<String, Consumer<String>> getWritePropertyPlaceholderOptions(CamelContext camelContext) {
053        return writePlaceholders;
054    }
055
056}
057