camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r861712 - in /websites/production/camel/content: book-component-appendix.html book-in-one-page.html cache/main.pageCache camel-2120-release.html shiro-security.html
Date Sun, 12 May 2013 12:20:51 GMT
Author: buildbot
Date: Sun May 12 12:20:51 2013
New Revision: 861712

Log:
Production update by buildbot for camel

Modified:
    websites/production/camel/content/book-component-appendix.html
    websites/production/camel/content/book-in-one-page.html
    websites/production/camel/content/cache/main.pageCache
    websites/production/camel/content/camel-2120-release.html
    websites/production/camel/content/shiro-security.html

Modified: websites/production/camel/content/book-component-appendix.html
==============================================================================
--- websites/production/camel/content/book-component-appendix.html (original)
+++ websites/production/camel/content/book-component-appendix.html Sun May 12 12:20:51 2013
@@ -15451,6 +15451,34 @@ sec-level1 = zone1:readonly:*
     } 
 </pre>
 </div></div>
+
+<h3><a shape="rect" name="BookComponentAppendix-SendingMessagestoroutessecuredbyaShiroSecurityPolicy%28mucheasierfromCamel2.12onwards%29"></a>Sending
Messages to routes secured by a ShiroSecurityPolicy (much easier from Camel 2.12 onwards)</h3>
+
+<p>From <b>Camel 2.12</b> onwards its even easier as you can provide the
subject in two different ways.</p>
+
+<h4><a shape="rect" name="BookComponentAppendix-UsingShiroSecurityToken"></a>Using
ShiroSecurityToken</h4>
+
+<p>You can send a message to a Camel route with a header of key <tt>ShiroSecurityConstants.SHIRO_SECURITY_TOKEN</tt>
of the type <tt>org.apache.camel.component.shiro.security.ShiroSecurityToken</tt>
that contains the username and password. For example:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+        ShiroSecurityToken shiroSecurityToken = <span class="code-keyword">new</span>
ShiroSecurityToken(<span class="code-quote">"ringo"</span>, <span class="code-quote">"starr"</span>);
+
+        template.sendBodyAndHeader(<span class="code-quote">"direct:secureEndpoint"</span>,
<span class="code-quote">"Beatle Mania"</span>, ShiroSecurityConstants.SHIRO_SECURITY_TOKEN,
shiroSecurityToken);
+</pre>
+</div></div>
+
+<p>You can also provide the username and password in two different headers as shown
below:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+        Map&lt;<span class="code-object">String</span>, <span class="code-object">Object</span>&gt;
headers = <span class="code-keyword">new</span> HashMap&lt;<span class="code-object">String</span>,
<span class="code-object">Object</span>&gt;();
+        headers.put(ShiroSecurityConstants.SHIRO_SECURITY_USERNAME, <span class="code-quote">"ringo"</span>);
+        headers.put(ShiroSecurityConstants.SHIRO_SECURITY_PASSWORD, <span class="code-quote">"starr"</span>);
+        template.sendBodyAndHeaders(<span class="code-quote">"direct:secureEndpoint"</span>,
<span class="code-quote">"Beatle Mania"</span>, headers);
+</pre>
+</div></div>
+
+<p>When you use the username and password headers, then the ShiroSecurityPolicy in
the Camel route will automatic transform those into a single header with key ShiroSecurityConstants.SHIRO_SECURITY_TOKEN
with the token. Then token is either a <tt>ShiroSecurityToken</tt> instance, of
a base64 representation as a String (the latter is when you have set base64=true).</p>
+
 <h2><a shape="rect" name="BookComponentAppendix-SIPComponent"></a>SIP Component</h2>
 
 <p><b>Available as of Camel 2.5</b></p>

Modified: websites/production/camel/content/book-in-one-page.html
==============================================================================
--- websites/production/camel/content/book-in-one-page.html (original)
+++ websites/production/camel/content/book-in-one-page.html Sun May 12 12:20:51 2013
@@ -36466,6 +36466,34 @@ sec-level1 = zone1:readonly:*
     } 
 </pre>
 </div></div>
+
+<h3><a shape="rect" name="BookInOnePage-SendingMessagestoroutessecuredbyaShiroSecurityPolicy%28mucheasierfromCamel2.12onwards%29"></a>Sending
Messages to routes secured by a ShiroSecurityPolicy (much easier from Camel 2.12 onwards)</h3>
+
+<p>From <b>Camel 2.12</b> onwards its even easier as you can provide the
subject in two different ways.</p>
+
+<h4><a shape="rect" name="BookInOnePage-UsingShiroSecurityToken"></a>Using
ShiroSecurityToken</h4>
+
+<p>You can send a message to a Camel route with a header of key <tt>ShiroSecurityConstants.SHIRO_SECURITY_TOKEN</tt>
of the type <tt>org.apache.camel.component.shiro.security.ShiroSecurityToken</tt>
that contains the username and password. For example:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+        ShiroSecurityToken shiroSecurityToken = <span class="code-keyword">new</span>
ShiroSecurityToken(<span class="code-quote">"ringo"</span>, <span class="code-quote">"starr"</span>);
+
+        template.sendBodyAndHeader(<span class="code-quote">"direct:secureEndpoint"</span>,
<span class="code-quote">"Beatle Mania"</span>, ShiroSecurityConstants.SHIRO_SECURITY_TOKEN,
shiroSecurityToken);
+</pre>
+</div></div>
+
+<p>You can also provide the username and password in two different headers as shown
below:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+        Map&lt;<span class="code-object">String</span>, <span class="code-object">Object</span>&gt;
headers = <span class="code-keyword">new</span> HashMap&lt;<span class="code-object">String</span>,
<span class="code-object">Object</span>&gt;();
+        headers.put(ShiroSecurityConstants.SHIRO_SECURITY_USERNAME, <span class="code-quote">"ringo"</span>);
+        headers.put(ShiroSecurityConstants.SHIRO_SECURITY_PASSWORD, <span class="code-quote">"starr"</span>);
+        template.sendBodyAndHeaders(<span class="code-quote">"direct:secureEndpoint"</span>,
<span class="code-quote">"Beatle Mania"</span>, headers);
+</pre>
+</div></div>
+
+<p>When you use the username and password headers, then the ShiroSecurityPolicy in
the Camel route will automatic transform those into a single header with key ShiroSecurityConstants.SHIRO_SECURITY_TOKEN
with the token. Then token is either a <tt>ShiroSecurityToken</tt> instance, of
a base64 representation as a String (the latter is when you have set base64=true).</p>
+
 <h2><a shape="rect" name="BookInOnePage-SIPComponent"></a>SIP Component</h2>
 
 <p><b>Available as of Camel 2.5</b></p>

Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.

Modified: websites/production/camel/content/camel-2120-release.html
==============================================================================
--- websites/production/camel/content/camel-2120-release.html (original)
+++ websites/production/camel/content/camel-2120-release.html Sun May 12 12:20:51 2013
@@ -84,7 +84,7 @@
 
 <p>Welcome to the 2.12.0 release which approx XXX issues resolved (new features, improvements
and bug fixes such as...)</p>
 
-<ul><li><a shape="rect" href="endpoint-annotations.html" title="Endpoint Annotations">Endpoint
Annotations</a> along with automatically created HTML documentation for the endpoint
parameters; this makes it easier for component developers to add a few refactoring-safe annotations
to their Endpoint or Consumer implementations and, (along with javadoc comments on the field
or setter method), get nice user documentation on how to use the endpoint for free.</li><li><a
shape="rect" href="componentconfiguration.html" title="ComponentConfiguration">ComponentConfiguration</a>
API provides a handy API for tools developers to introspect on a Component to find all the
possible parameters, their types and any extra annotations (like Bean Validation Annotations)
to be able to create/edit endpoints or URI strings so that tools can generate nicer UIs for
configuring endpoints than just letting folks edit Strings.</li><li><a shape="rect"
href="spring-web-services.html" title="Spring Web Serv
 ices">Spring Web Services</a> now supports setting/receiving SOAP headers more easily
using a header on the Camel <a shape="rect" href="message.html" title="Message">Message</a>.</li><li>Evaluating
<a shape="rect" href="groovy.html" title="Groovy">Groovy</a> expressions is faster
as we cache the compiled scripts.</li><li>Added <tt>base64</tt> option
to <a shape="rect" href="shiro-security.html" title="Shiro Security">Shiro Security</a>
to allow transferring security token over <a shape="rect" href="jms.html" title="JMS">JMS</a>
and other transports as base64 encoded representation.</li></ul>
+<ul><li><a shape="rect" href="endpoint-annotations.html" title="Endpoint Annotations">Endpoint
Annotations</a> along with automatically created HTML documentation for the endpoint
parameters; this makes it easier for component developers to add a few refactoring-safe annotations
to their Endpoint or Consumer implementations and, (along with javadoc comments on the field
or setter method), get nice user documentation on how to use the endpoint for free.</li><li><a
shape="rect" href="componentconfiguration.html" title="ComponentConfiguration">ComponentConfiguration</a>
API provides a handy API for tools developers to introspect on a Component to find all the
possible parameters, their types and any extra annotations (like Bean Validation Annotations)
to be able to create/edit endpoints or URI strings so that tools can generate nicer UIs for
configuring endpoints than just letting folks edit Strings.</li><li><a shape="rect"
href="spring-web-services.html" title="Spring Web Serv
 ices">Spring Web Services</a> now supports setting/receiving SOAP headers more easily
using a header on the Camel <a shape="rect" href="message.html" title="Message">Message</a>.</li><li>Evaluating
<a shape="rect" href="groovy.html" title="Groovy">Groovy</a> expressions is faster
as we cache the compiled scripts.</li><li>Added <tt>base64</tt> option
to <a shape="rect" href="shiro-security.html" title="Shiro Security">Shiro Security</a>
to allow transferring security token over <a shape="rect" href="jms.html" title="JMS">JMS</a>
and other transports as base64 encoded representation.</li><li>Made it easier
to use <a shape="rect" href="shiro-security.html" title="Shiro Security">Shiro Security</a>
as the credentials can be provided in headers, when sending a message to a secured route.</li></ul>
 
 
 <h3><a shape="rect" name="Camel2.12.0Release-FixedIssues"></a>Fixed Issues</h3>

Modified: websites/production/camel/content/shiro-security.html
==============================================================================
--- websites/production/camel/content/shiro-security.html (original)
+++ websites/production/camel/content/shiro-security.html Sun May 12 12:20:51 2013
@@ -260,7 +260,35 @@ sec-level1 = zone1:readonly:*
         failureEndpoint.assertIsSatisfied();
     } 
 </pre>
-</div></div></div>
+</div></div>
+
+<h3><a shape="rect" name="ShiroSecurity-SendingMessagestoroutessecuredbyaShiroSecurityPolicy%28mucheasierfromCamel2.12onwards%29"></a>Sending
Messages to routes secured by a ShiroSecurityPolicy (much easier from Camel 2.12 onwards)</h3>
+
+<p>From <b>Camel 2.12</b> onwards its even easier as you can provide the
subject in two different ways.</p>
+
+<h4><a shape="rect" name="ShiroSecurity-UsingShiroSecurityToken"></a>Using
ShiroSecurityToken</h4>
+
+<p>You can send a message to a Camel route with a header of key <tt>ShiroSecurityConstants.SHIRO_SECURITY_TOKEN</tt>
of the type <tt>org.apache.camel.component.shiro.security.ShiroSecurityToken</tt>
that contains the username and password. For example:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+        ShiroSecurityToken shiroSecurityToken = <span class="code-keyword">new</span>
ShiroSecurityToken(<span class="code-quote">"ringo"</span>, <span class="code-quote">"starr"</span>);
+
+        template.sendBodyAndHeader(<span class="code-quote">"direct:secureEndpoint"</span>,
<span class="code-quote">"Beatle Mania"</span>, ShiroSecurityConstants.SHIRO_SECURITY_TOKEN,
shiroSecurityToken);
+</pre>
+</div></div>
+
+<p>You can also provide the username and password in two different headers as shown
below:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+        Map&lt;<span class="code-object">String</span>, <span class="code-object">Object</span>&gt;
headers = <span class="code-keyword">new</span> HashMap&lt;<span class="code-object">String</span>,
<span class="code-object">Object</span>&gt;();
+        headers.put(ShiroSecurityConstants.SHIRO_SECURITY_USERNAME, <span class="code-quote">"ringo"</span>);
+        headers.put(ShiroSecurityConstants.SHIRO_SECURITY_PASSWORD, <span class="code-quote">"starr"</span>);
+        template.sendBodyAndHeaders(<span class="code-quote">"direct:secureEndpoint"</span>,
<span class="code-quote">"Beatle Mania"</span>, headers);
+</pre>
+</div></div>
+
+<p>When you use the username and password headers, then the ShiroSecurityPolicy in
the Camel route will automatic transform those into a single header with key ShiroSecurityConstants.SHIRO_SECURITY_TOKEN
with the token. Then token is either a <tt>ShiroSecurityToken</tt> instance, of
a base64 representation as a String (the latter is when you have set base64=true).</p>
+</div>
         </td>
         <td valign="top">
           <div class="navigation">



Mime
View raw message