camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: HTTPS - help required
Date Tue, 28 Apr 2009 07:27:25 GMT
Hi

Yeah looks cool. Contributions is much welcome.


On Tue, Apr 28, 2009 at 8:31 AM, Willem Jiang <willem.jiang@gmail.com> wrote:
> Cool, we love the contribution , please feel free to create a JIRA for
> the patch. Please also submit a unit test and update the wiki for it :).
>
> Willem
>
> huntc wrote:
>> Hi there,
>>
>> Having found the need to be able to configure JAAS for my Camel Jetty
>> component I made some changes on my system to JettyHttpComponent and
>> JettyHttpEndpoint. These changes allow you to submit a Jetty Handler e.g. a
>> security handler by referring to a handler bean in the Jetty URI e.g.:
>>
>>
>>         jetty:http://0.0.0.0:9080/MyService?handlers=securityHandler
>>
>>
>> In my spring config, securityHandler is then defined as:
>>
>>
>>       &lt;!-- Jetty Security handling --&gt;
>>       &lt;bean id="userRealm"
>> class="org.mortbay.jetty.plus.jaas.JAASUserRealm"&gt;
>>               &lt;property name="name" value="tracker-users" /&gt;
>>               &lt;property name="loginModuleName" value="ldaploginmodule"
/&gt;
>>               &lt;property name="roleClassNames"
>> value="com.classactionpl.jaas.UserGroup" /&gt;
>>       &lt;/bean&gt;
>>       &lt;bean id="constraint" class="org.mortbay.jetty.security.Constraint"&gt;
>>               &lt;property name="name" value="BASIC" /&gt;
>>               &lt;property name="roles" value="tracker-users" /&gt;
>>               &lt;property name="authenticate" value="true" /&gt;
>>       &lt;/bean&gt;
>>       &lt;bean id="constraintMapping"
>> class="org.mortbay.jetty.security.ConstraintMapping"&gt;
>>               &lt;property name="constraint" ref="constraint" /&gt;
>>               &lt;property name="pathSpec" value="/*" /&gt;
>>       &lt;/bean&gt;
>>       &lt;bean id="securityHandler"
>> class="org.mortbay.jetty.security.SecurityHandler"&gt;
>>               &lt;property name="userRealm" ref="userRealm" /&gt;
>>               &lt;property name="constraintMappings" ref="constraintMapping"
/&gt;
>>       &lt;/bean&gt;
>>
>>
>> Would there be general interest in this capability? If so then I'm happy to
>> raise a JIRA and contribute the code. I've actually got everything above
>> working.
>>
>> Kind regards,
>> Christopher
>
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus
Apache Camel Reference Card:
http://refcardz.dzone.com/refcardz/enterprise-integration

Mime
View raw message