It's not a secret anymore!*
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
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: 4462
    
    6

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]
 
Consider Paul's rocket mass heater.
 
subject: JAAS Subjects, Principals