• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to set the Roles of a user

 
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Saloon Keeper
Posts: 27807
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic