Package org.apache.ws.security.message
Class WSAddTimestamp
- java.lang.Object
-
- org.apache.ws.security.message.WSBaseMessage
-
- org.apache.ws.security.message.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).
-
-
Field Summary
-
Fields inherited from class org.apache.ws.security.message.WSBaseMessage
actor, doDebug, keyIdentifierType, mustunderstand, parts, password, timeToLive, user, wssConfig
-
-
Constructor Summary
Constructors Constructor Description WSAddTimestamp()Deprecated.replaced byWSSecTimestamp()WSAddTimestamp(java.lang.String actor)Deprecated.replaced byWSSecTimestamp()andWSSecHeaderfor actor specification.WSAddTimestamp(java.lang.String actor, boolean mu)Deprecated.replaced byWSSecTimestamp()andWSSecHeaderfor actor and mustunderstand specification.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.w3c.dom.Documentbuild(org.w3c.dom.Document doc, int ttl)Deprecated.replaced byWSSecTimestamp.build(Document, WSSecHeader)andWSSecTimestamp#setTimeToLive()java.lang.StringgetId()Deprecated.replaced byWSSecTimestamp.getId()voidsetId(java.lang.String id)Deprecated.no replacement, id is created by default inWSSecTimestamp-
Methods inherited from class org.apache.ws.security.message.WSBaseMessage
getKeyIdentifierType, insertSecurityHeader, setActor, setBodyID, setKeyIdentifierType, setMustUnderstand, setParts, setTimeToLive, setUserInfo, setWsConfig, setWsuId
-
-
-
-
Constructor Detail
-
WSAddTimestamp
public WSAddTimestamp()
Deprecated.replaced byWSSecTimestamp()Constructor.
-
WSAddTimestamp
public WSAddTimestamp(java.lang.String actor)
Deprecated.replaced byWSSecTimestamp()andWSSecHeaderfor actor specification.Constructor.- Parameters:
actor- the name of the actor of thewsse:Securityheader
-
WSAddTimestamp
public WSAddTimestamp(java.lang.String actor, boolean mu)Deprecated.replaced byWSSecTimestamp()andWSSecHeaderfor actor and mustunderstand specification.Constructor.- Parameters:
actor- The name of the actor of thewsse:Securityheadermu- SetmustUnderstandto true or false
-
-
Method Detail
-
build
public org.w3c.dom.Document build(org.w3c.dom.Document doc, int ttl)Deprecated.replaced byWSSecTimestamp.build(Document, WSSecHeader)andWSSecTimestamp#setTimeToLive()Adds a newTimestampto a soap envelope. A completeTimestampis constructed and added to thewsse:Securityheader.- Parameters:
doc- The SOAP enevlope as W3C documentttl- This is the time difference in seconds between theCreatedand theExpiresinTimestamp, set to zero ifExpiresshould 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 inWSSecTimestampSet the wsu:Id value of the Timestamp- Parameters:
id-
-
getId
public java.lang.String getId()
Deprecated.replaced byWSSecTimestamp.getId()Get the wsu:Id value of the Timestamp- Returns:
- TODO
-
-