|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.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 | |
---|---|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
Verifies that the invoker has the right of invoking a certain method and invokes it on the MBeanServer. |
static javax.management.remote.MBeanServerForwarder |
newProxyInstance(java.lang.String type,
java.lang.String param)
Returns a usable MBeanServerForwarder instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static javax.management.remote.MBeanServerForwarder newProxyInstance(java.lang.String type, java.lang.String param)
type
- MBeanServerForwarder type.param
- MBeanServerForwarder parameter, for example the access
list file for the type "file".
public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
invoke
in interface java.lang.reflect.InvocationHandler
proxy
- The proxy instance that the method was invoked on.method
- Method to invoke.args
- Arguments to give to the method.
java.lang.reflect.InvocationTargetException
- Problem with the invocation target.
java.lang.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 |