<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
xmlns:enc="http://karaf.apache.org/xmlns/jasypt/v1.0.0"
xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">
<cm:property-placeholder id="enc.test.placeholder" persistent-id="enc.test" placeholder-prefix="$[" placeholder-suffix="]" update-strategy="reload"/>
<enc:property-placeholder>
<enc:encryptor class="org.jasypt.encryption.pbe.StandardPBEStringEncryptor">
<property name="config">
<bean class="org.jasypt.encryption.pbe.config.EnvironmentStringPBEConfig">
<property name="algorithm" value="PBEWITHHMACSHA512ANDAES_256"/>
<property name="passwordEnvName" value="ENCRYPTION_PASSWORD"/>
</bean>
</property>
</enc:encryptor>
</enc:property-placeholder>
<bean
class="org.apache.camel.component.jasypt.JasyptPropertiesParser" id="jasypt">
<property name="algorithm" value="PBEWITHHMACSHA512ANDAES_256"/>
<property name="password" value="sysenv:ENCRYPTION_PASSWORD"/>
</bean>
<camelContext id="log-example-context" xmlns="http://camel.apache.org/schema/blueprint" >
<propertyPlaceholder id="properties" location="blueprint:enc.test.placeholder" propertiesParserRef="jasypt"/>
<!--
A very simple Camel route, that uses a timer to trigger a message every 5 second.
The <setBody> sets a body into the Camel Message.
The <log/> elements are used to add human-friendly business logging statements. They make it easier to see what the
route is doing.
-->
<route id="log-route">
<from uri="timer:foo?period=5000"/>
<setBody>
<simple>Hello from Fuse based Camel route!</simple>
</setBody>
<log message="{{my.property}}"/>
</route>
</camelContext>
</blueprint>