aspose 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
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » Security
Reply 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: 12513

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 ]

One of the most odious afflictions that Business has inflicted on the modern English language is "pro-active". Most of the time it's simply redundantly used in place of the simple old word "active". And a good deal of the rest of the time it means "You're not overworked enough yet, so go out and find more!"
 
 
subject: How to set the Roles of a user
 
Threads others viewed
doubt about component diagram
Login Use Case and JAAS...
select from a table minus other table?
get the remote IP address from a LoginModule
Accessing groups in a session bean
MyEclipse, The Clear Choice