• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to get Security Roles for a Principal?  RSS feed

 
Darya Akbari
Ranch Hand
Posts: 1855
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I was wondering how to get all security roles for a principal. I know, the question depends on the app server vendor and is outside the EJB spec, but I can't find a better forum than this one.

For JBoss I know how it works. Here you have a MBean named which has a method which provides the security roles assigned to a user or principal.

How do other app servers like Glassfish, Weblogic, Websphere etc. create this information? Do they have a similar method?

Any hints are welcome

Regards,
Darya
 
Darya Akbari
Ranch Hand
Posts: 1855
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Irrespective of how other app server call something similar to getUserRoles(), is their a standardized way, like through JAAS, to extract security roles?

However, finally one has to do it the vendor way .
[ July 24, 2007: Message edited by: Darya Akbari ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!