站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 server API Documentation 英文版文档

AuthorizationInterceptor (JBoss Server API) - JBoss 4.0.1 sp1 server API Documentation 英文版文档


org.jboss.jmx.connector.invoker
Class AuthorizationInterceptor

java.lang.Object
  extended byorg.jboss.mx.interceptor.AbstractInterceptor
      extended byorg.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: 1.2.4.1 $
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

Parameters:
invocation -
Returns:
Throws:
Throwable


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