File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Security and the fly likes How to set the Roles of a user 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 "How to set the Roles of a user" Watch "How to set the Roles of a user" New topic
Author

How to set the Roles of a user

Sebastiaan Kortleven
Ranch Hand

Joined: Mar 12, 2004
Posts: 81
Hi there,
I'm working on a custom LoginModule for JAAS. I believe I have it all working, the loginmodule is called and completes without errors. But I don't know where the loginmodule should save the users roles... (I got a collection of roles for a certain user, but where do I put these?) I would like to use the isUserInRole from the SessionContext...
I couldn't find much useful information, so I'm turning to you guys.
Anyone who can point me to some docs or help me on my way?
tnx!
[ March 22, 2004: Message edited by: Sebastiaan Kortleven ]
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15629
    
  15

J2EE Security For Servlets, EJBs, and Web Services by Pankaj Kumar (Prentice-Hall), p 129 "running code on behalf of a user":

LoginContext maintains information about a user in an instance of javax.security.auth.Subject

Does that help?
[ March 26, 2004: Message edited by: Tim Holloway ]

Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to set the Roles of a user
 
Similar Threads
doubt about component diagram
Login Use Case and JAAS...
get the remote IP address from a LoginModule
select from a table minus other table?
Accessing groups in a session bean