org.apache.ws.axis.security
Class WSDoAllReceiver

java.lang.Object
  extended byorg.apache.axis.handlers.BasicHandler
      extended byorg.apache.ws.axis.security.WSDoAllReceiver
All Implemented Interfaces:
org.apache.axis.Handler, java.io.Serializable

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

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.axis.handlers.BasicHandler
makeLockable, name, options
 
Constructor Summary
WSDoAllReceiver()
           
 
Method Summary
 void invoke(org.apache.axis.MessageContext msgContext)
          Axis calls invoke to handle a message.
protected  Crypto loadDecryptionCrypto(org.apache.ws.axis.security.WSDoAllReceiver.RequestData reqData)
          Hook to allow subclasses to load their Decryption Crypto however they see fit.
protected  Crypto loadSignatureCrypto(org.apache.ws.axis.security.WSDoAllReceiver.RequestData reqData)
          Hook to allow subclasses to load their Signature Crypto however they see fit.
protected  boolean verifyTimestamp(Timestamp timestamp, int timeToLive)
          Evaluate whether a timestamp is considered valid on receiverside.
 
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
 

Constructor Detail

WSDoAllReceiver

public WSDoAllReceiver()
Method Detail

invoke

public void invoke(org.apache.axis.MessageContext msgContext)
            throws org.apache.axis.AxisFault
Axis calls invoke to handle a message.

Throws:
org.apache.axis.AxisFault

loadSignatureCrypto

protected Crypto loadSignatureCrypto(org.apache.ws.axis.security.WSDoAllReceiver.RequestData reqData)
                              throws org.apache.axis.AxisFault
Hook to allow subclasses to load their Signature Crypto however they see fit.

Throws:
org.apache.axis.AxisFault

loadDecryptionCrypto

protected Crypto loadDecryptionCrypto(org.apache.ws.axis.security.WSDoAllReceiver.RequestData reqData)
                               throws org.apache.axis.AxisFault
Hook to allow subclasses to load their Decryption Crypto however they see fit.

Throws:
org.apache.axis.AxisFault

verifyTimestamp

protected boolean verifyTimestamp(Timestamp timestamp,
                                  int timeToLive)
                           throws org.apache.axis.AxisFault
Evaluate whether a timestamp is considered valid on receiverside. Hook to allow subclasses to implement custom validation methods however they see fit.

Policy used in this implementation: 1. The receiver can set its own time to live (besides from that set on sender side) 2. If the message was created before (now-ttl) the message is rejected

Parameters:
timestamp - the timestamp that is validated
timeToLive - the limit on receiverside, the timestamp is validated against
Returns:
true if the timestamp is before (now-timeToLive), false otherwise
Throws:
org.apache.axis.AxisFault