camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r917380 - in /websites/production/camel/content: cache/main.pageCache jasypt.html
Date Fri, 25 Jul 2014 14:18:02 GMT
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[
-&lt;dependency&gt;
+<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[&lt;dependency&gt;
     &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
     &lt;artifactId&gt;camel-jasypt&lt;/artifactId&gt;
     &lt;version&gt;x.x.x&lt;/version&gt;
     &lt;!-- use the same version as your Camel core version --&gt;
 &lt;/dependency&gt;
 ]]></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 &lt;command&gt; = Command either encrypt or decrypt
@@ -118,40 +103,21 @@ Apache Camel Jasypt takes the following 
   -i or -input &lt;input&gt; = Text to encrypt or decrypt
   -a or -algorithm &lt;algorithm&gt; = 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>&lt;CAMEL_HOME&gt;</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 &lt;CAMEL_HOME&gt;/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>&lt;CAMEL_HOME&gt;</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 &lt;CAMEL_HOME&gt;/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 &lt;CAMEL_HOME&gt;/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 &lt;CAMEL_HOME&gt;/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(&quot;properties&quot;, 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[
-&lt;!-- define the jasypt properties parser with the given password to be used --&gt;
+</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[&lt;!--
define the jasypt properties parser with the given password to be used --&gt;
 &lt;bean id=&quot;jasypt&quot; class=&quot;org.apache.camel.component.jasypt.JasyptPropertiesParser&quot;&gt;
     &lt;property name=&quot;password&quot; value=&quot;secret&quot;/&gt;
 &lt;/bean&gt;
-
+ 
 &lt;!-- define the camel properties component --&gt;
 &lt;bean id=&quot;properties&quot; class=&quot;org.apache.camel.component.properties.PropertiesComponent&quot;&gt;
     &lt;!-- the properties file is in the classpath --&gt;
@@ -263,18 +181,14 @@ cool.password=ENC(bsW9uV37gQ0QHFu7KO03Ww
     &lt;property name=&quot;propertiesParser&quot; ref=&quot;jasypt&quot;/&gt;
 &lt;/bean&gt;
 ]]></script>
-</div></div>
-
-<p>The <a shape="rect" href="properties.html">Properties</a> component
can also be inlined inside the <code>&lt;camelContext&gt;</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[
-&lt;!-- define the jasypt properties parser with the given password to be used --&gt;
+</div></div><p>The <a shape="rect" href="properties.html">Properties</a>
component can also be inlined inside the <code>&lt;camelContext&gt;</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[&lt;!--
define the jasypt properties parser with the given password to be used --&gt;
 &lt;bean id=&quot;jasypt&quot; class=&quot;org.apache.camel.component.jasypt.JasyptPropertiesParser&quot;&gt;
     &lt;!-- 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 --&gt;
     &lt;property name=&quot;password&quot; value=&quot;secret&quot;/&gt;
 &lt;/bean&gt;
-
+ 
 &lt;camelContext xmlns=&quot;http://camel.apache.org/schema/spring&quot;&gt;
     &lt;!-- define the camel properties placeholder, and let it leverage jasypt --&gt;
     &lt;propertyPlaceholder id=&quot;properties&quot;
@@ -286,11 +200,66 @@ cool.password=ENC(bsW9uV37gQ0QHFu7KO03Ww
     &lt;/route&gt;
 &lt;/camelContext&gt;
 ]]></script>
-</div></div>
+</div></div><h3 id="Jasypt-ExamplewithBlueprintXML">Example with Blueprint
XML</h3><p>In Blueprint XML you need to configure the&#160;<code>JasyptPropertiesParser</code>&#160;which
is shown below. Then the Camel&#160;<a shape="rect" href="properties.html">Properties</a>&#160;component
is told to use&#160;<code>jasypt</code>&#160;as the properties parser,
which means&#160;<a shape="rect" href="jasypt.html">Jasypt</a>&#160;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[&lt;blueprint
xmlns=&quot;http://www.osgi.org/xmlns/blueprint/v1.0.0&quot;
+           xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
+           xmlns:cm=&quot;http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0&quot;
+           xsi:schemaLocation=&quot;
+           http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd&quot;&gt;
+
+  &lt;cm:property-placeholder id=&quot;myblue&quot; persistent-id=&quot;mypersistent&quot;&gt;
+      &lt;!-- list some properties for this test --&gt;
+      &lt;cm:default-properties&gt;
+          &lt;cm:property name=&quot;cool.result&quot; value=&quot;mock:{{cool.password}}&quot;/&gt;
+          &lt;cm:property name=&quot;cool.password&quot; value=&quot;ENC(bsW9uV37gQ0QHFu7KO03Ww==)&quot;/&gt;
+      &lt;/cm:default-properties&gt;
+  &lt;/cm:property-placeholder&gt;
+
+    &lt;!-- define the jasypt properties parser with the given password to be used --&gt;
+    &lt;bean id=&quot;jasypt&quot; class=&quot;org.apache.camel.component.jasypt.JasyptPropertiesParser&quot;&gt;
+        &lt;property name=&quot;password&quot; value=&quot;secret&quot;/&gt;
+    &lt;/bean&gt;
+
+    &lt;camelContext xmlns=&quot;http://camel.apache.org/schema/blueprint&quot;&gt;
+      &lt;!-- define the camel properties placeholder, and let it leverage jasypt --&gt;
+      &lt;propertyPlaceholder id=&quot;properties&quot;
+                           location=&quot;blueprint:myblue&quot;
+                           propertiesParserRef=&quot;jasypt&quot;/&gt;
+        &lt;route&gt;
+            &lt;from uri=&quot;direct:start&quot;/&gt;
+            &lt;to uri=&quot;{{cool.result}}&quot;/&gt;
+        &lt;/route&gt;
+    &lt;/camelContext&gt;
+
+&lt;/blueprint&gt;
+
+]]></script>
+</div></div><p>The&#160;<a shape="rect" href="properties.html">Properties</a>&#160;component
can also be inlined inside the&#160;<code>&lt;camelContext&gt;</code>&#160;tag
which is shown below. Notice how we use the&#160;<code>propertiesParserRef</code>&#160;attribute
to refer to&#160;<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[&lt;blueprint
xmlns=&quot;http://www.osgi.org/xmlns/blueprint/v1.0.0&quot;
+           xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
+           xmlns:cm=&quot;http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0&quot;
+           xsi:schemaLocation=&quot;
+           http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd&quot;&gt;
+
+    &lt;!-- define the jasypt properties parser with the given password to be used --&gt;
+    &lt;bean id=&quot;jasypt&quot; class=&quot;org.apache.camel.component.jasypt.JasyptPropertiesParser&quot;&gt;
+        &lt;property name=&quot;password&quot; value=&quot;secret&quot;/&gt;
+    &lt;/bean&gt;
+
+    &lt;camelContext xmlns=&quot;http://camel.apache.org/schema/blueprint&quot;&gt;
+      &lt;!-- define the camel properties placeholder, and let it leverage jasypt --&gt;
+      &lt;propertyPlaceholder id=&quot;properties&quot;
+                           location=&quot;classpath:org/apache/camel/component/jasypt/myproperties.properties&quot;
+                           propertiesParserRef=&quot;jasypt&quot;/&gt;
+        &lt;route&gt;
+            &lt;from uri=&quot;direct:start&quot;/&gt;
+            &lt;to uri=&quot;{{cool.result}}&quot;/&gt;
+        &lt;/route&gt;
+    &lt;/camelContext&gt;
 
-
-<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>
+&lt;/blueprint&gt;
+]]></script>
+</div></div><p>&#160;</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">



Mime
View raw message