org.glite.security.voms.service
Class SecurityContextHandler

java.lang.Object
  extended byorg.apache.axis.handlers.BasicHandler
      extended byorg.glite.security.voms.service.SecurityContextHandler
All Implemented Interfaces:
org.apache.axis.Handler, java.io.Serializable

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

This class is an AXIS handler that can be put in a request flow in front of an actual SOAP endpoint that it initializes the SecurityContext.

Currently, only the case of SOAP over HTTPS with client authentication is supported.

Configuration (Tomcat)
The handler is installed by first defining a handler in the .wsdd file:

 <handler name="initSC"
     type="java:org.glite.security.voms.service.SecurityContextHandler">
 </handler>
 
A request flow also needs to be defined for the servlets in question:
 <service name="TestService" ...>
    <requestFlow>
        <handler type="initSC"/>
    </requestFlow>
    ...
 </service>
 

Author:
mulmo
See Also:
Serialized Form

Field Summary
protected static org.apache.log4j.Logger log
           
 
Fields inherited from class org.apache.axis.handlers.BasicHandler
makeLockable, name, options
 
Constructor Summary
SecurityContextHandler()
           
 
Method Summary
 void invoke(org.apache.axis.MessageContext mc)
          Initializes the SecurityContext from a MessageContext.
 
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

log

protected static org.apache.log4j.Logger log
Constructor Detail

SecurityContextHandler

public SecurityContextHandler()
Method Detail

invoke

public void invoke(org.apache.axis.MessageContext mc)
            throws org.apache.axis.AxisFault
Initializes the SecurityContext from a MessageContext.

Throws:
org.apache.axis.AxisFault
See Also:
Handler.invoke(MessageContext)