[jboss-user] [Security & JAAS/JBoss] - Re: Retreiving user roles using a ClientLogin
ragavgomatam
do-not-reply at jboss.com
Tue Oct 28 21:12:25 EDT 2008
I presume you will be doing a
LoginContext.login() from your Swing client
You can get your Roles (which are stored as Groups which is a subinterface of Principal ) as follows :-
Subject subj = LoginContext.getSubject();
| Set<Principal> set = subj.getPrincipals()
Hope this helps
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4185260#4185260
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185260
More information about the jboss-user
mailing list