camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From huntc <hu...@mac.com>
Subject Re: HTTPS - help required
Date Tue, 28 Apr 2009 06:17:46 GMT

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
-- 
View this message in context: http://www.nabble.com/HTTPS---help-required-tp20932280p23270820.html
Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message