[jboss-user] [Security & JAAS/JBoss] - How to get method permission roles from session bean
do-not-reply at jboss.com
Tue Nov 28 03:47:49 EST 2006
How do I get the roles allowed to invoke a method from within a session bean?
It seems that I can query the container:
Set methodRoles = container.getMethodPermissions(mi.getMethod(), iface);
And then call doesUserHaveRole, but how do I get a reference to the container from within a session bean?
In essence, all I want to do is find out if the currently logged in person has permission to read (get methods), write (set methods), create (ejbCreate) and delete (ejbRemove) a particular entity so I can use this information to enable/disable certain features in a swing based fat client.
What is the best way of getting this information?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989192#3989192
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989192
More information about the jboss-user