org.glite.ce.commonj.axis.handlers
Class AuthorizationHandler

java.lang.Object
  extended byorg.apache.axis.handlers.BasicHandler
      extended byorg.glite.ce.commonj.axis.handlers.AuthorizationHandler
All Implemented Interfaces:
org.apache.axis.Handler, java.io.Serializable

public class AuthorizationHandler
extends org.apache.axis.handlers.BasicHandler

This class is a plugin that can be inserted into the request flow of Axis in order to enable the authorization of a request. It accesses to the grid Java Authorization Framework (gJAF) methods for the authorization processing of the request; the configuration of gJAF chains and plugins is retrieved from the message context and is defined using Java Management Extensions methods and beans.

See Also:
Serialized Form

Field Summary
static java.lang.String USERDN_RFC2253_LABEL
          This label is used as the key to retrieve the user DN from the message context in the format specified into RFC2253
static java.lang.String USERDN_X500_LABEL
          This label is used as the key to retrieve the user DN from the message context in X500 format
 
Fields inherited from class org.apache.axis.handlers.BasicHandler
makeLockable, name, options
 
Constructor Summary
AuthorizationHandler()
          The default constructor of the class.
 
Method Summary
 void invoke(org.apache.axis.MessageContext msgContext)
          This method is invoked by the axis engine during the processing of the request.
 
Methods inherited from class org.apache.axis.handlers.BasicHandler
canHandleBlock, cleanup, generateWSDL, getDeploymentData, getName, getOption, getOptions, getUnderstoodHeaders, init, initHashtable, onFault, setName, setOption, setOptionDefault, setOptions, setOptionsLockable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USERDN_X500_LABEL

public static java.lang.String USERDN_X500_LABEL
This label is used as the key to retrieve the user DN from the message context in X500 format


USERDN_RFC2253_LABEL

public static java.lang.String USERDN_RFC2253_LABEL
This label is used as the key to retrieve the user DN from the message context in the format specified into RFC2253

Constructor Detail

AuthorizationHandler

public AuthorizationHandler()
The default constructor of the class. It just calls the BasicHandler constructor

Method Detail

invoke

public void invoke(org.apache.axis.MessageContext msgContext)
            throws org.apache.axis.AxisFault
This method is invoked by the axis engine during the processing of the request. It checks if the user is allowed to process the operation contained into the request. The authorization process is handled by grid Java Authorization Framework. This method stores into the message context the user DN in X500 and RFC2253 formats for any further usage.

Parameters:
msgContext - is the message context for the current request.
Throws:
org.apache.axis.AxisFault - if the user is not authorized to execute the operation or if an error occurs during the authorization process.