Author: buildbot
Date: Fri Jul 25 14:18:02 2014
New Revision: 917380
Log:
Production update by buildbot for camel
Modified:
websites/production/camel/content/cache/main.pageCache
websites/production/camel/content/jasypt.html
Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.
Modified: websites/production/camel/content/jasypt.html
==============================================================================
--- websites/production/camel/content/jasypt.html (original)
+++ websites/production/camel/content/jasypt.html Fri Jul 25 14:18:02 2014
@@ -86,31 +86,16 @@
<tbody>
<tr>
<td valign="top" width="100%">
-<div class="wiki-content maincontent"><h2 id="Jasypt-Jasyptcomponent">Jasypt
component</h2>
-<p><strong>Available as of Camel 2.5</strong></p>
-
-<p><a shape="rect" class="external-link" href="http://www.jasypt.org/"
rel="nofollow">Jasypt</a> is a simplified encryption library which makes
encryption and decryption easy. Camel integrates with Jasypt to allow sensitive
information in <a shape="rect" href="properties.html">Properties</a> files to
be encrypted. By dropping <strong><code>camel-jasypt</code></strong> on the
classpath those encrypted values will automatically be decrypted on-the-fly by
Camel. This ensures that human eyes can't easily spot sensitive information
such as usernames and passwords.</p>
-
-<p>Maven users will need to add the following dependency to their
<code>pom.xml</code> for this component:</p>
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[
-<dependency>
+<div class="wiki-content maincontent"><h2 id="Jasypt-Jasyptcomponent">Jasypt
component</h2><p><strong>Available as of Camel 2.5</strong></p><p><a
shape="rect" class="external-link" href="http://www.jasypt.org/"
rel="nofollow">Jasypt</a> is a simplified encryption library which makes
encryption and decryption easy. Camel integrates with Jasypt to allow sensitive
information in <a shape="rect" href="properties.html">Properties</a> files to
be encrypted. By dropping <strong><code>camel-jasypt</code></strong> on the
classpath those encrypted values will automatically be decrypted on-the-fly by
Camel. This ensures that human eyes can't easily spot sensitive information
such as usernames and passwords.</p><p>Maven users will need to add the
following dependency to their <code>pom.xml</code> for this component:</p><div
class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
+<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-jasypt</artifactId>
<version>x.x.x</version>
<!-- use the same version as your Camel core version -->
</dependency>
]]></script>
-</div></div>
-
-<h3 id="Jasypt-Tooling">Tooling</h3>
-
-<p>The <a shape="rect" href="jasypt.html">Jasypt</a> component provides a
little command line tooling to encrypt or decrypt values.</p>
-
-<p>The console output the syntax and which options it provides:</p>
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
-Apache Camel Jasypt takes the following options
+</div></div><h3 id="Jasypt-Tooling">Tooling</h3><p>The <a shape="rect"
href="jasypt.html">Jasypt</a> component provides a little command line tooling
to encrypt or decrypt values.</p><p>The console output the syntax and which
options it provides:</p><div class="code panel pdl" style="border-width:
1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[Apache Camel Jasypt takes the following
options
-h or -help = Displays the help screen
-c or -command <command> = Command either encrypt or decrypt
@@ -118,40 +103,21 @@ Apache Camel Jasypt takes the following
-i or -input <input> = Text to encrypt or decrypt
-a or -algorithm <algorithm> = Optional algorithm to use
]]></script>
-</div></div>
-
-<p>For example to encrypt the value <code>tiger</code> you run with the
following parameters. In the apache camel kit, you cd into the lib folder and
run the following java cmd, where <em><CAMEL_HOME></em> is where you have
downloaded and extract the Camel distribution.</p>
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
-$ cd <CAMEL_HOME>/lib
+</div></div><p>For example to encrypt the value <code>tiger</code> you run
with the following parameters. In the apache camel kit, you cd into the lib
folder and run the following java cmd, where <em><CAMEL_HOME></em> is
where you have downloaded and extract the Camel distribution.</p><div
class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[$ cd <CAMEL_HOME>/lib
$ java -jar camel-jasypt-2.5.0.jar -c encrypt -p secret -i tiger
]]></script>
-</div></div>
-<p>Which outputs the following result</p>
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
-Encrypted text: qaEEacuW7BUti8LcMgyjKw==
+</div></div><p>Which outputs the following result</p><div class="code panel
pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[Encrypted text: qaEEacuW7BUti8LcMgyjKw==
]]></script>
-</div></div>
-<p>This means the encrypted representation
<code>qaEEacuW7BUti8LcMgyjKw==</code> can be decrypted back to
<code>tiger</code> if you know the master password which was
<code>secret</code>.<br clear="none">
-If you run the tool again then the encrypted value will return a different
result. But decrypting the value will always return the correct original
value.</p>
-
-<p>So you can test it by running the tooling using the following
parameters:</p>
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
-$ cd <CAMEL_HOME>/lib
+</div></div><p>This means the encrypted representation
<code>qaEEacuW7BUti8LcMgyjKw==</code> can be decrypted back to
<code>tiger</code> if you know the master password which was
<code>secret</code>.<br clear="none"> If you run the tool again then the
encrypted value will return a different result. But decrypting the value will
always return the correct original value.</p><p>So you can test it by running
the tooling using the following parameters:</p><div class="code panel pdl"
style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[$ cd <CAMEL_HOME>/lib
$ java -jar camel-jasypt-2.5.0.jar -c decrypt -p secret -i
qaEEacuW7BUti8LcMgyjKw==
]]></script>
-</div></div>
-<p>Which outputs the following result:</p>
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
-Decrypted text: tiger
+</div></div><p>Which outputs the following result:</p><div class="code panel
pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[Decrypted text: tiger
]]></script>
-</div></div>
-
-<p>The idea is then to use those encrypted values in your <a shape="rect"
href="properties.html">Properties</a> files. Notice how the password value is
encrypted and the value has the tokens surrounding <code>ENC(value
here)</code></p>
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
+</div></div><p>The idea is then to use those encrypted values in your <a
shape="rect" href="properties.html">Properties</a> files. Notice how the
password value is encrypted and the value has the tokens surrounding
<code>ENC(value here)</code></p><div class="code panel pdl"
style="border-width: 1px;"><div class="codeContent panelContent pdl">
<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
# refer to a mock endpoint name by that encrypted password
cool.result=mock:{{cool.password}}
@@ -159,64 +125,25 @@ cool.result=mock:{{cool.password}}
# here is a password which is encrypted
cool.password=ENC(bsW9uV37gQ0QHFu7KO03Ww==)
]]></script>
-</div></div>
-
-<h4 id="Jasypt-ToolingdependenciesforCamel2.5and2.6">Tooling dependencies for
Camel 2.5 and 2.6</h4>
-
-<p>The tooling requires the following JARs in the classpath, which has been
enlisted in the <code>MANIFEST.MF</code> file of <code>camel-jasypt</code> with
<code>optional/</code> as prefix. Hence why the java cmd above can pickup the
needed JARs from the Apache Distribution in the <code>optional</code>
directory.</p>
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
-jasypt-1.6.jar commons-lang-2.4.jar commons-codec-1.4.jar icu4j-4.0.1.jar
+</div></div><h4 id="Jasypt-ToolingdependenciesforCamel2.5and2.6">Tooling
dependencies for Camel 2.5 and 2.6</h4><p>The tooling requires the following
JARs in the classpath, which has been enlisted in the <code>MANIFEST.MF</code>
file of <code>camel-jasypt</code> with <code>optional/</code> as prefix. Hence
why the java cmd above can pickup the needed JARs from the Apache Distribution
in the <code>optional</code> directory.</p><div class="code panel pdl"
style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[jasypt-1.6.jar commons-lang-2.4.jar
commons-codec-1.4.jar icu4j-4.0.1.jar
]]></script>
-</div></div>
-
- <div class="aui-message hint shadowed information-macro">
+</div></div> <div class="aui-message hint shadowed information-macro">
<p class="title">Java 1.5 users</p>
<span class="aui-icon icon-hint">Icon</span>
<div class="message-content">
-
-<p>The <code>icu4j-4.0.1.jar</code> is only needed when running on JDK 1.5.</p>
-
-<p>This JAR is not distributed by Apache Camel and you have to download it
manually and copy it to the <code>lib/optional</code> directory of the Camel
distribution.<br clear="none">
-You can download it from <a shape="rect" class="external-link"
href="http://repo2.maven.org/maven2/com/ibm/icu/icu4j/4.0.1/"
rel="nofollow">Apache Central Maven repo</a>.</p>
+ <p>The <code>icu4j-4.0.1.jar</code> is only needed
when running on JDK 1.5.</p><p>This JAR is not distributed by Apache Camel and
you have to download it manually and copy it to the <code>lib/optional</code>
directory of the Camel distribution.<br clear="none"> You can download it from
<a shape="rect" class="external-link"
href="http://repo2.maven.org/maven2/com/ibm/icu/icu4j/4.0.1/"
rel="nofollow">Apache Central Maven repo</a>.</p>
</div>
</div>
-
-
-<h4 id="Jasypt-ToolingdependenciesforCamel2.7orbetter">Tooling dependencies
for Camel 2.7 or better</h4>
-
-<p>Jasypt 1.7 onwards is now fully standalone so no additional JARs is
needed.</p>
-
-<h3 id="Jasypt-URIOptions">URI Options</h3>
-<p>The options below are exclusive for the <a shape="rect"
href="jasypt.html">Jasypt</a> component. </p>
-<div class="confluenceTableSmall">
+<h4 id="Jasypt-ToolingdependenciesforCamel2.7orbetter">Tooling dependencies
for Camel 2.7 or better</h4><p>Jasypt 1.7 onwards is now fully standalone so no
additional JARs is needed.</p><h3 id="Jasypt-URIOptions">URI Options</h3><p>The
options below are exclusive for the <a shape="rect"
href="jasypt.html">Jasypt</a> component.</p><div class="confluenceTableSmall">
<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1"
class="confluenceTh"><p> Name </p></th><th colspan="1" rowspan="1"
class="confluenceTh"><p> Default Value </p></th><th colspan="1" rowspan="1"
class="confluenceTh"><p> Type </p></th><th colspan="1" rowspan="1"
class="confluenceTh"><p> Description </p></th></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p> <code>password</code> </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>null</code> </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>String</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Specifies the
master password to use for decrypting. This option is mandatory. See below for
more details. </p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p> <code>algorithm</code> </p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p> <code>null</code> </p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p> <code>String</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Name of an
optional algorithm to use. </p></td></tr></tbody></table>
-</div>
-
-<h3 id="Jasypt-Protectingthemasterpassword">Protecting the master password</h3>
-<p>The master password used by <a shape="rect" href="jasypt.html">Jasypt</a>
must be provided, so that it's capable of decrypting the values. However having
this master password out in the open may not be an ideal solution. Therefore
you could for example provide it as a JVM system property or as a OS
environment setting. If you decide to do so then the <code>password</code>
option supports prefixes which dictates this. <code>sysenv:</code> means to
lookup the OS system environment with the given key. <code>sys:</code> means to
lookup a JVM system property.</p>
-
-<p>For example you could provided the password before you start the
application</p>
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
-$ export CAMEL_ENCRYPTION_PASSWORD=secret
+</div><h3 id="Jasypt-Protectingthemasterpassword">Protecting the master
password</h3><p>The master password used by <a shape="rect"
href="jasypt.html">Jasypt</a> must be provided, so that it's capable of
decrypting the values. However having this master password out in the open may
not be an ideal solution. Therefore you could for example provide it as a JVM
system property or as a OS environment setting. If you decide to do so then the
<code>password</code> option supports prefixes which dictates this.
<code>sysenv:</code> means to lookup the OS system environment with the given
key. <code>sys:</code> means to lookup a JVM system property.</p><p>For example
you could provided the password before you start the application</p><div
class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[$ export CAMEL_ENCRYPTION_PASSWORD=secret
]]></script>
-</div></div>
-<p>Then start the application, such as running the start script.</p>
-
-<p>When the application is up and running you can unset the environment</p>
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
-$ unset CAMEL_ENCRYPTION_PASSWORD
+</div></div><p>Then start the application, such as running the start
script.</p><p>When the application is up and running you can unset the
environment</p><div class="code panel pdl" style="border-width: 1px;"><div
class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[$ unset CAMEL_ENCRYPTION_PASSWORD
]]></script>
-</div></div>
-
-<p>The <code>password</code> option is then a matter of defining as follows:
<code>password=sysenv:CAMEL_ENCRYPTION_PASSWORD</code>.</p>
-
-<h3 id="Jasypt-ExamplewithJavaDSL">Example with Java DSL</h3>
-
-<p>In Java DSL you need to configure <a shape="rect"
href="jasypt.html">Jasypt</a> as a <code>JasyptPropertiesParser</code> instance
and set it on the <a shape="rect" href="properties.html">Properties</a>
component as show below:</p>
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
+</div></div><p>The <code>password</code> option is then a matter of defining
as follows: <code>password=sysenv:CAMEL_ENCRYPTION_PASSWORD</code>.</p><h3
id="Jasypt-ExamplewithJavaDSL">Example with Java DSL</h3><p>In Java DSL you
need to configure <a shape="rect" href="jasypt.html">Jasypt</a> as a
<code>JasyptPropertiesParser</code> instance and set it on the <a shape="rect"
href="properties.html">Properties</a> component as show below:</p><div
class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
// create the jasypt properties parser
JasyptPropertiesParser jasypt = new JasyptPropertiesParser();
@@ -232,10 +159,7 @@ pc.setPropertiesParser(jasypt);
// add properties component to camel context
context.addComponent("properties", pc);
]]></script>
-</div></div>
-
-<p>The properties file <code>myproperties.properties</code> then contain the
encrypted value, such as shown below. Notice how the password value is
encrypted and the value has the tokens surrounding <code>ENC(value
here)</code></p>
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
+</div></div><p>The properties file <code>myproperties.properties</code> then
contain the encrypted value, such as shown below. Notice how the password value
is encrypted and the value has the tokens surrounding <code>ENC(value
here)</code></p><div class="code panel pdl" style="border-width: 1px;"><div
class="codeContent panelContent pdl">
<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
# refer to a mock endpoint name by that encrypted password
cool.result=mock:{{cool.password}}
@@ -243,18 +167,12 @@ cool.result=mock:{{cool.password}}
# here is a password which is encrypted
cool.password=ENC(bsW9uV37gQ0QHFu7KO03Ww==)
]]></script>
-</div></div>
-
-<h3 id="Jasypt-ExamplewithSpringXML">Example with Spring XML</h3>
-
-<p>In Spring XML you need to configure the <code>JasyptPropertiesParser</code>
which is shown below. Then the Camel <a shape="rect"
href="properties.html">Properties</a> component is told to use
<code>jasypt</code> as the properties parser, which means <a shape="rect"
href="jasypt.html">Jasypt</a> has its chance to decrypt values looked up in the
properties. </p>
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[
-<!-- define the jasypt properties parser with the given password to be used
-->
+</div></div><h3 id="Jasypt-ExamplewithSpringXML">Example with Spring
XML</h3><p>In Spring XML you need to configure the
<code>JasyptPropertiesParser</code> which is shown below. Then the Camel <a
shape="rect" href="properties.html">Properties</a> component is told to use
<code>jasypt</code> as the properties parser, which means <a shape="rect"
href="jasypt.html">Jasypt</a> has its chance to decrypt values looked up in the
properties.</p><div class="code panel pdl" style="border-width: 1px;"><div
class="codeContent panelContent pdl">
+<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[<!-- define the jasypt properties parser
with the given password to be used -->
<bean id="jasypt"
class="org.apache.camel.component.jasypt.JasyptPropertiesParser">
<property name="password" value="secret"/>
</bean>
-
+
<!-- define the camel properties component -->
<bean id="properties"
class="org.apache.camel.component.properties.PropertiesComponent">
<!-- the properties file is in the classpath -->
@@ -263,18 +181,14 @@ cool.password=ENC(bsW9uV37gQ0QHFu7KO03Ww
<property name="propertiesParser" ref="jasypt"/>
</bean>
]]></script>
-</div></div>
-
-<p>The <a shape="rect" href="properties.html">Properties</a> component can
also be inlined inside the <code><camelContext></code> tag which is shown
below. Notice how we use the <code>propertiesParserRef</code> attribute to
refer to <a shape="rect" href="jasypt.html">Jasypt</a>.</p>
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[
-<!-- define the jasypt properties parser with the given password to be used
-->
+</div></div><p>The <a shape="rect" href="properties.html">Properties</a>
component can also be inlined inside the <code><camelContext></code> tag
which is shown below. Notice how we use the <code>propertiesParserRef</code>
attribute to refer to <a shape="rect" href="jasypt.html">Jasypt</a>.</p><div
class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[<!-- define the jasypt properties parser
with the given password to be used -->
<bean id="jasypt"
class="org.apache.camel.component.jasypt.JasyptPropertiesParser">
<!-- password is mandatory, you can prefix it with sysenv: or sys: to
indicate it should use
an OS environment or JVM system property value, so you dont have the
master password defined here -->
<property name="password" value="secret"/>
</bean>
-
+
<camelContext xmlns="http://camel.apache.org/schema/spring">
<!-- define the camel properties placeholder, and let it leverage
jasypt -->
<propertyPlaceholder id="properties"
@@ -286,11 +200,66 @@ cool.password=ENC(bsW9uV37gQ0QHFu7KO03Ww
</route>
</camelContext>
]]></script>
-</div></div>
+</div></div><h3 id="Jasypt-ExamplewithBlueprintXML">Example with Blueprint
XML</h3><p>In Blueprint XML you need to configure
the <code>JasyptPropertiesParser</code> which is shown below. Then
the Camel <a shape="rect"
href="properties.html">Properties</a> component is told to
use <code>jasypt</code> as the properties parser, which means <a
shape="rect" href="jasypt.html">Jasypt</a> has its chance to decrypt
values looked up in the properties.</p><div class="code panel pdl"
style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[<blueprint
xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0"
+ xsi:schemaLocation="
+ http://www.osgi.org/xmlns/blueprint/v1.0.0
http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">
+
+ <cm:property-placeholder id="myblue"
persistent-id="mypersistent">
+ <!-- list some properties for this test -->
+ <cm:default-properties>
+ <cm:property name="cool.result"
value="mock:{{cool.password}}"/>
+ <cm:property name="cool.password"
value="ENC(bsW9uV37gQ0QHFu7KO03Ww==)"/>
+ </cm:default-properties>
+ </cm:property-placeholder>
+
+ <!-- define the jasypt properties parser with the given password to be
used -->
+ <bean id="jasypt"
class="org.apache.camel.component.jasypt.JasyptPropertiesParser">
+ <property name="password" value="secret"/>
+ </bean>
+
+ <camelContext
xmlns="http://camel.apache.org/schema/blueprint">
+ <!-- define the camel properties placeholder, and let it leverage
jasypt -->
+ <propertyPlaceholder id="properties"
+ location="blueprint:myblue"
+ propertiesParserRef="jasypt"/>
+ <route>
+ <from uri="direct:start"/>
+ <to uri="{{cool.result}}"/>
+ </route>
+ </camelContext>
+
+</blueprint>
+
+]]></script>
+</div></div><p>The <a shape="rect"
href="properties.html">Properties</a> component can also be inlined inside
the <code><camelContext></code> tag which is shown below.
Notice how we use the <code>propertiesParserRef</code> attribute to
refer to <a shape="rect" href="jasypt.html">Jasypt</a>.</p><div
class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
+<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[<blueprint
xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0"
+ xsi:schemaLocation="
+ http://www.osgi.org/xmlns/blueprint/v1.0.0
http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">
+
+ <!-- define the jasypt properties parser with the given password to be
used -->
+ <bean id="jasypt"
class="org.apache.camel.component.jasypt.JasyptPropertiesParser">
+ <property name="password" value="secret"/>
+ </bean>
+
+ <camelContext
xmlns="http://camel.apache.org/schema/blueprint">
+ <!-- define the camel properties placeholder, and let it leverage
jasypt -->
+ <propertyPlaceholder id="properties"
+
location="classpath:org/apache/camel/component/jasypt/myproperties.properties"
+ propertiesParserRef="jasypt"/>
+ <route>
+ <from uri="direct:start"/>
+ <to uri="{{cool.result}}"/>
+ </route>
+ </camelContext>
-
-<h3 id="Jasypt-SeeAlso">See Also</h3>
-<ul class="alternate"><li><a shape="rect"
href="security.html">Security</a></li><li><a shape="rect"
href="properties.html">Properties</a></li><li><a shape="rect"
class="external-link"
href="http://activemq.apache.org/encrypted-passwords.html">Encrypted passwords
in ActiveMQ</a> - ActiveMQ has a similar feature as this
<code>camel-jasypt</code> component</li></ul></div>
+</blueprint>
+]]></script>
+</div></div><p> </p><h3 id="Jasypt-SeeAlso">See Also</h3><ul
class="alternate"><li><a shape="rect"
href="security.html">Security</a></li><li><a shape="rect"
href="properties.html">Properties</a></li><li><a shape="rect"
class="external-link"
href="http://activemq.apache.org/encrypted-passwords.html">Encrypted passwords
in ActiveMQ</a> - ActiveMQ has a similar feature as this
<code>camel-jasypt</code> component</li></ul></div>
</td>
<td valign="top">
<div class="navigation">