File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

JAAS Subjects, Principals

Junilu Lacar

Joined: Feb 26, 2001
Posts: 6529

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]
I agree. Here's the link:
subject: JAAS Subjects, Principals
It's not a secret anymore!