org.apache.axis2.security.handler
Class WSDoAllHandler

java.lang.Object
  extended byorg.apache.ws.security.handler.WSHandler
      extended byorg.apache.axis2.security.handler.WSDoAllHandler
All Implemented Interfaces:
Handler, Serializable
Direct Known Subclasses:
WSDoAllReceiver, WSDoAllSender

public abstract class WSDoAllHandler
extends org.apache.ws.security.handler.WSHandler
implements Handler

Class WSDoAllHandler

See Also:
Serialized Form

Field Summary
protected  HandlerDescription handlerDesc
          Field handlerDesc
protected  boolean inHandler
          In Axis2, the user cannot set inflow and outflow parameters.
protected  org.apache.ws.security.handler.RequestData reqData
          This is used to get hold of the message context to extract the configuration information (from axis2.xml and service.xml) out of it
 
Fields inherited from class org.apache.ws.security.handler.WSHandler
cryptos, DONE, secEngine
 
Constructor Summary
WSDoAllHandler()
          Constructor AbstractHandler.
 
Method Summary
 void cleanup()
          Method cleanup.
 ClassLoader getClassLoader()
          Overrides the class loader used to load the PW callback class.
protected  int getCurrentRepetition(Object msgContext)
          Returns the repetition number from the message context
 HandlerDescription getHandlerDesc()
          Gets the handler description.
 QName getName()
          Method getName.
 Object getOption(String axisKey)
          Gets optoin.
 Parameter getParameter(String name)
          Method getParameter.
 String getPassword(Object msgContext)
           
 Object getProperty(Object msgContext, String axisKey)
           
 String getUsername(Object msgContext)
           
 void init(HandlerDescription handlerdesc)
          Method init.
 void setPassword(Object msgContext, String password)
           
 void setProperty(Object msgContext, String key, Object value)
           
 void setUsername(Object msgContext, String username)
           
 String toString()
           
 
Methods inherited from class org.apache.ws.security.handler.WSHandler
checkReceiverResults, checkSignatureConfirmation, decodeDecryptionParameter, decodeEnableSignatureConfirmation, decodeEncryptionParameter, decodeMustUnderstand, decodeSignatureParameter, decodeSignatureParameter2, decodeTimestampPrecision, decodeTimestampStrict, decodeTimeToLive, decodeUTParameter, doReceiverAction, doSenderAction, getPassword, getPasswordCB, getString, getStringOption, loadDecryptionCrypto, loadEncryptionCrypto, loadSignatureCrypto, verifyTimestamp, verifyTrust
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.axis2.engine.Handler
invoke
 

Field Detail

handlerDesc

protected HandlerDescription handlerDesc
Field handlerDesc


reqData

protected org.apache.ws.security.handler.RequestData reqData
This is used to get hold of the message context to extract the configuration information (from axis2.xml and service.xml) out of it


inHandler

protected boolean inHandler
In Axis2, the user cannot set inflow and outflow parameters. Therefore, we need to map the Axis2 specific inflow and outflow parameters to WSS4J params, Knowledge of inhandler and out handler is used to get the mapped value.

Constructor Detail

WSDoAllHandler

public WSDoAllHandler()
Constructor AbstractHandler.

Method Detail

getName

public QName getName()
Method getName.

Specified by:
getName in interface Handler
Returns:
Returns name.

cleanup

public void cleanup()
             throws AxisFault
Method cleanup.

Specified by:
cleanup in interface Handler
Throws:
AxisFault

getParameter

public Parameter getParameter(String name)
Method getParameter.

Specified by:
getParameter in interface Handler
Parameters:
name -
Returns:
Returns parameter.

init

public void init(HandlerDescription handlerdesc)
Method init.

Specified by:
init in interface Handler
Parameters:
handlerdesc -

getHandlerDesc

public HandlerDescription getHandlerDesc()
Gets the handler description.

Specified by:
getHandlerDesc in interface Handler
Returns:
Returns handler description.

toString

public String toString()

getProperty

public Object getProperty(Object msgContext,
                          String axisKey)

getCurrentRepetition

protected int getCurrentRepetition(Object msgContext)
Returns the repetition number from the message context

Parameters:
msgContext -
Returns:
Returns int.

getPassword

public String getPassword(Object msgContext)

setPassword

public void setPassword(Object msgContext,
                        String password)

getUsername

public String getUsername(Object msgContext)

setUsername

public void setUsername(Object msgContext,
                        String username)

getOption

public Object getOption(String axisKey)
Gets optoin. Extracts the configuration values from the service.xml and/or axis2.xml. Values set in the service.xml takes prority over values of the axis2.xml


setProperty

public void setProperty(Object msgContext,
                        String key,
                        Object value)

getClassLoader

public ClassLoader getClassLoader()
Overrides the class loader used to load the PW callback class.

Returns:
Returns class loader.