karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Moulliard <ch0...@gmail.com>
Subject Re: Any idea to design a JUnit test for Security/Realm
Date Sat, 12 Jan 2013 10:30:19 GMT
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 <ch007m@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

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