org.jboss.jmx.connector.invoker
Class AuthorizationInterceptor

java.lang.Object
  extended by org.jboss.mx.interceptor.AbstractInterceptor
      extended by org.jboss.jmx.connector.invoker.AuthorizationInterceptor
All Implemented Interfaces:
org.jboss.mx.interceptor.Interceptor

public class AuthorizationInterceptor
extends org.jboss.mx.interceptor.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: 57209 $
Author:
Anil Saldhana, Scott.Stark@jboss.org
See Also:
AuthenticationInterceptor

Field Summary
 
Fields inherited from class org.jboss.mx.interceptor.AbstractInterceptor
isShared, log, name
 
Constructor Summary
AuthorizationInterceptor()
           
 
Method Summary
 Object invoke(org.jboss.mx.server.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 )
 
Methods inherited from class org.jboss.mx.interceptor.AbstractInterceptor
destroy, getName, init, isShared, setLogger, setName, start, stop, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AuthorizationInterceptor

public AuthorizationInterceptor()
Method Detail

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(org.jboss.mx.server.Invocation invocation)
              throws Throwable
Intercept the invoke(Invocation) operations

Specified by:
invoke in interface org.jboss.mx.interceptor.Interceptor
Overrides:
invoke in class org.jboss.mx.interceptor.AbstractInterceptor
Parameters:
invocation -
Returns:
Throws:
Throwable


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.