uk.ac.soton.itinnovation.grid.utils.wss4j.handler
Class WSOutboundHandler

java.lang.Object
  extended by org.apache.ws.security.handler.WSHandler
      extended by org.apache.ws.axis.security.handler.WSDoAllHandler
          extended by org.apache.ws.axis.security.WSDoAllSender
              extended by uk.ac.soton.itinnovation.grid.utils.wss4j.handler.WSOutboundHandler
All Implemented Interfaces:
Serializable, Handler

public class WSOutboundHandler
extends org.apache.ws.axis.security.WSDoAllSender

This handler doesnt require a user alias be specified in the server deployment file as it is already available from the crypto object. This is a rewritten version of AK's code, which subclasses WSDoAllSender instead of copying all the code in here.

In addition, we get the configuration for the signature crypto from the message context, not by reading in a properties file.

See Also:
Serialized Form

Field Summary
static String SIG_IDENTITY
          Attribute name on MessageContext.
 
Fields inherited from class org.apache.ws.axis.security.WSDoAllSender
log
 
Fields inherited from class org.apache.ws.axis.security.handler.WSDoAllHandler
makeLockable, name, options
 
Fields inherited from class org.apache.ws.security.handler.WSHandler
cryptos, DONE, secEngine
 
Constructor Summary
WSOutboundHandler()
           
 
Method Summary
 void invoke(MessageContext mc)
           
 org.apache.ws.security.components.crypto.Crypto loadSignatureCrypto(org.apache.ws.security.handler.RequestData reqData)
           
 
Methods inherited from class org.apache.ws.axis.security.handler.WSDoAllHandler
canHandleBlock, cleanup, generateWSDL, getDeploymentData, getName, getOption, getOptions, getPassword, getProperty, getUnderstoodHeaders, init, initHashtable, onFault, setName, setOption, setOptionDefault, setOptions, setOptionsLockable, setPassword, setProperty
 
Methods inherited from class org.apache.ws.security.handler.WSHandler
checkReceiverResults, checkSignatureConfirmation, decodeCustomPasswordTypes, decodeDecryptionParameter, decodeEnableSignatureConfirmation, decodeEncryptionParameter, decodeMustUnderstand, decodeSignatureParameter, decodeSignatureParameter2, decodeTimestampPrecision, decodeTimestampStrict, decodeTimeToLive, decodeUTParameter, doReceiverAction, doSenderAction, getClassLoader, getPassword, getPasswordCB, getString, getStringOption, loadDecryptionCrypto, loadEncryptionCrypto, verifyTimestamp, verifyTrust
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SIG_IDENTITY

public static final String SIG_IDENTITY
Attribute name on MessageContext.

See Also:
Constant Field Values
Constructor Detail

WSOutboundHandler

public WSOutboundHandler()
Method Detail

invoke

public void invoke(MessageContext mc)
            throws AxisFault
Specified by:
invoke in interface Handler
Overrides:
invoke in class org.apache.ws.axis.security.WSDoAllSender
Throws:
AxisFault

loadSignatureCrypto

public org.apache.ws.security.components.crypto.Crypto loadSignatureCrypto(org.apache.ws.security.handler.RequestData reqData)
                                                                    throws org.apache.ws.security.WSSecurityException
Overrides:
loadSignatureCrypto in class org.apache.ws.security.handler.WSHandler
Throws:
org.apache.ws.security.WSSecurityException


Copyright © 2001-2008 University of Southampton IT Innovation Centre. All Rights Reserved.