org.jboss.jmx.connector.invoker
Class AuthorizationInterceptor
java.lang.Object
org.jboss.mx.interceptor.AbstractInterceptor
org.jboss.jmx.connector.invoker.AuthorizationInterceptor
- All Implemented Interfaces:
- Interceptor
public class AuthorizationInterceptor
- extends AbstractInterceptor
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";
- Version:
- $Revision: 81030 $
- Author:
- Anil Saldhana, Scott.Stark@jboss.org
- See Also:
AuthenticationInterceptor
Method Summary |
Object |
invoke(Invocation invocation)
Intercept the invoke(Invocation) operations |
void |
setAuthorizingClass(Class clazz)
The Authorizing class must have a method called
public Boolean authorize( Principal caller, String mbean,String opname ) |
AuthorizationInterceptor
public AuthorizationInterceptor()
setAuthorizingClass
public void setAuthorizingClass(Class clazz)
throws Exception
- The Authorizing class must have a method called
public Boolean authorize( Principal caller, String mbean,String opname )
- Parameters:
clazz
-
- Throws:
Exception
invoke
public Object invoke(Invocation invocation)
throws Throwable
- Intercept the invoke(Invocation) operations
- Specified by:
invoke
in interface Interceptor
- Overrides:
invoke
in class AbstractInterceptor
- Parameters:
invocation
-
- Returns:
-
- Throws:
Throwable
Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.