• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to set the Roles of a user

 
Sebastiaan Kortleven
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18277
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic