You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by lixin chu <li...@yahoo.com> on 2004/07/20 17:43:52 UTC
[OT] How to get Role/Group info only in JAAS client/tagish package
Hi,
A bit OT question: how to get the Role/Group info only
in JASS client - I am using Tagish package but I guess
it is common.
In my login.java, I use:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lc = new LoginContext(....);
lc.login();
Set p = lc.getSubject().getPrincipals();
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
However, the getPrincipals() returns all the
principals associated with the Subjet, including user
name and Group in terms of Tagish implementation - I
think it is common for JAAS implementation.
Is there a way to retrieve the Group/Role names only ?
thanks !
li xin
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org