Will perhaps developp a Junit LoginContext based on ideas proposed here in
JDK Security example :
http://docs.oracle.com/javase/6/docs/technotes/guides/security/jaas/tutorials/GeneralAcnOnly.html


On Sat, Jan 12, 2013 at 11:03 AM, Charles Moulliard <ch0...@gmail.com>wrote:

> Hi,
>
> As we have Camel/Karaf projects using JAAS & Realm but until now no unit
> test allowing to authenticate a user/password & Role against realm deploy
> in Karaf or in any other Java container (EE, Standalone, Jetty, Tomcat), I
> try to figure out How we could create a class to register realms (during
> @Before phase of JUnit) and that next we could use in a test with cxf,
> camel-cxf, osgi service to intercept (using camel policy or ws-security,
> ....) user/password & role and check it against realms.
>
> Any idea are welcome ?
>
> Regards,
>
> --
> Charles Moulliard
> Apache Committer / Sr. Enterprise Architect (RedHat)
> Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
>
>


-- 
Charles Moulliard
Apache Committer / Sr. Enterprise Architect (RedHat)
Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com

Reply via email to