aspose file tools*
The moose likes Security and the fly likes JAAS Subjects, Principals Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "JAAS Subjects, Principals" Watch "JAAS Subjects, Principals" New topic
Author

JAAS Subjects, Principals

Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 4419
    
    5

I'm using Oracle's JAAS implementation (JAZN) with LDAP. request.getRemoteUser() and request.getUserPrincipal().getName() both return a string in the format "realm/uid". Since a a Subject can have several Principals, is it possible to get to other Principals of the Subject associated with the Principal returned by request? If it is possible, how do I distinguish one Principal from another and how do I get a particular Principal (e.g. the "SSN" or "employeenumber"). Does this make sense?
[ February 21, 2003: Message edited by: Junilu Lacar ]

Junilu - [How to Ask Questions] [How to Answer Questions]
 
jQuery in Action, 2nd edition
 
subject: JAAS Subjects, Principals
 
Similar Threads
Getting the JAAS Subject from an session bean.
The questions about JAAS & EJB
request.getUserPrincipal() return null after authentication
changing password after jaas login, update the Subject?
Can't get my custom principal using getCallerPrincipal