Class WSAddTimestamp


  • public class WSAddTimestamp
    extends WSBaseMessage
    Builds a WS Timestamp and inserts it into the SOAP Envelope. Refer to the WS specification 1.0. chapter 10 / appendix A.2
    Author:
    Christof Soehngen (Christof.Soehngen@syracom.de).
    • Constructor Detail

      • WSAddTimestamp

        public WSAddTimestamp()
        Deprecated.
        replaced by WSSecTimestamp()
        Constructor.
      • WSAddTimestamp

        public WSAddTimestamp​(java.lang.String actor)
        Deprecated.
        replaced by WSSecTimestamp() and WSSecHeader for actor specification.
        Constructor.

        Parameters:
        actor - the name of the actor of the wsse:Security header
      • WSAddTimestamp

        public WSAddTimestamp​(java.lang.String actor,
                              boolean mu)
        Deprecated.
        replaced by WSSecTimestamp() and WSSecHeader for actor and mustunderstand specification.
        Constructor.

        Parameters:
        actor - The name of the actor of the wsse:Security header
        mu - Set mustUnderstand to true or false
    • Method Detail

      • build

        public org.w3c.dom.Document build​(org.w3c.dom.Document doc,
                                          int ttl)
        Deprecated.
        replaced by WSSecTimestamp.build(Document, WSSecHeader) and WSSecTimestamp#setTimeToLive()
        Adds a new Timestamp to a soap envelope. A complete Timestamp is constructed and added to the wsse:Security header.
        Parameters:
        doc - The SOAP enevlope as W3C document
        ttl - This is the time difference in seconds between the Created and the Expires in Timestamp, set to zero if Expires should not be added.
        Returns:
        Document with Timestamp added
        Throws:
        java.lang.Exception
      • setId

        public void setId​(java.lang.String id)
        Deprecated.
        no replacement, id is created by default in WSSecTimestamp
        Set the wsu:Id value of the Timestamp
        Parameters:
        id -
      • getId

        public java.lang.String getId()
        Deprecated.
        Get the wsu:Id value of the Timestamp
        Returns:
        TODO