This week's book / license giveaways are in the JDBC and Relational Databases and Java in General forums.
We're giving away four copies each of PostGIS in Action and Java Advanced Topics Training and have the authors on-line!
See this thread and this one for details.
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: 6101
    
  15

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: http://aspose.com/file-tools
 
subject: JAAS Subjects, Principals