org.jboss.jmx.connector.invoker
Class AuthorizationInterceptor
java.lang.Object
org.jboss.mx.interceptor.AbstractInterceptor (src)
org.jboss.jmx.connector.invoker.AuthorizationInterceptor
- All Implemented Interfaces:
- Interceptor (src)
- public class AuthorizationInterceptor
- extends AbstractInterceptor (src)
An Interceptor that aids in providing Authorization to JMX Invocations
at an MBean Operations level. This must be placed after the
AuthenticationInterceptor to ensure a valid caller context exists
String msg = "Define your own class which has a method authorize with signature";
msg += "public void authorize( Principal caller, Subject subject,
String objectname,String opname)";
msg += ". And replace " + azclassname + " its name";
- See Also:
AuthenticationInterceptor
(src)
Method Summary |
java.lang.Object |
invoke(Invocation (src) invocation)
Intercept the invoke(Invocation) operations |
void |
setAuthorizingClass(java.lang.Class clazz)
The Authorizing class must have a method called
public Boolean authorize( Principal caller, String mbean,String opname ) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AuthorizationInterceptor
public AuthorizationInterceptor()
setAuthorizingClass
public void setAuthorizingClass(java.lang.Class clazz)
throws java.lang.Exception
- The Authorizing class must have a method called
public Boolean authorize( Principal caller, String mbean,String opname )
- Parameters:
clazz
-
- Throws:
java.lang.Exception
invoke
public java.lang.Object invoke(Invocation (src) invocation)
throws java.lang.Throwable
- Intercept the invoke(Invocation) operations
- Specified by:
invoke
in interface Interceptor (src)
- Overrides:
invoke
in class AbstractInterceptor (src)
- Parameters:
invocation
-
- Returns:
-
- Throws:
java.lang.Throwable
- See Also:
Invocation
(src) ,
MBeanInvoker
(src)