Hi,
| javas.security.auth.login.LoginContext lc;
| AppCallbackHandler ach; // just like in Scott's Jaas-Tutorial...
|
| ach = new AppCallbackHandler(composedUserName, password.toCharArray());
|
| lc = new LoginContext("plebs", ach);
|
| lc.login();
|
This code works well in a servlet. The login-context (last line) contains data
for the principal and its roles. Is it possible to let the web-container
further on use these principal-data to authenticate the user? I don't think so,
because I can't give the login-context or principals to the web-container. Or
am I wrong?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3882320#3882320
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3882320
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user