|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.security.auth.spi.RoleBasedAuthorizationModule
public class RoleBasedAuthorizationModule
Authorizes a certain user to access a certain resource based on the role(s) of that user and that user's group(s).
Method Summary | |
---|---|
Object |
invoke(Object proxy,
Method method,
Object[] args)
Verifies that the invoker has the right of invoking a certain method and invokes it on the MBeanServer. |
static MBeanServerForwarder |
newProxyInstance(String type,
String param)
Returns a usable MBeanServerForwarder instance. |
void |
setJmxService(JmxService jmxService)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static MBeanServerForwarder newProxyInstance(String type, String param)
type
- MBeanServerForwarder type.param
- MBeanServerForwarder parameter, for example the access
list file for the type "file".
public void setJmxService(JmxService jmxService)
jmxService
- the jmxService to setpublic Object invoke(Object proxy, Method method, Object[] args) throws IllegalAccessException, InvocationTargetException
invoke
in interface InvocationHandler
proxy
- The proxy instance that the method was invoked on.method
- Method to invoke.args
- Arguments to give to the method.
InvocationTargetException
- Problem with the invocation target.
IllegalAccessException
- If the current user is not allowed to
invoke the given method.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |