Package org.apache.ws.security.message
Class WSAddTimestamp
java.lang.Object
org.apache.ws.security.message.WSBaseMessage
org.apache.ws.security.message.WSAddTimestamp
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
ConstructorsConstructorDescriptionDeprecated.WSAddTimestamp
(String actor) Deprecated.replaced byWSSecTimestamp()
andWSSecHeader
for actor specification.WSAddTimestamp
(String actor, boolean mu) Deprecated.replaced byWSSecTimestamp()
andWSSecHeader
for actor and mustunderstand specification. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.replaced byWSSecTimestamp.build(Document, WSSecHeader)
andinvalid reference
WSSecTimestamp#setTimeToLive()
getId()
Deprecated.replaced byWSSecTimestamp.getId()
void
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 Details
-
WSAddTimestamp
public WSAddTimestamp()Deprecated.replaced byWSSecTimestamp()
Constructor. -
WSAddTimestamp
Deprecated.replaced byWSSecTimestamp()
andWSSecHeader
for actor specification.Constructor.- Parameters:
actor
- the name of the actor of thewsse:Security
header
-
WSAddTimestamp
Deprecated.replaced byWSSecTimestamp()
andWSSecHeader
for actor and mustunderstand specification.Constructor.- Parameters:
actor
- The name of the actor of thewsse:Security
headermu
- SetmustUnderstand
to true or false
-
-
Method Details
-
build
Deprecated.replaced byWSSecTimestamp.build(Document, WSSecHeader)
andinvalid reference
WSSecTimestamp#setTimeToLive()
Adds a newTimestamp
to a soap envelope. A completeTimestamp
is constructed and added to thewsse:Security
header.- Parameters:
doc
- The SOAP enevlope as W3C documentttl
- This is the time difference in seconds between theCreated
and theExpires
inTimestamp
, set to zero ifExpires
should not be added.- Returns:
- Document with Timestamp added
- Throws:
Exception
-
setId
Deprecated.no replacement, id is created by default inWSSecTimestamp
Set the wsu:Id value of the Timestamp- Parameters:
id
-
-
getId
Deprecated.replaced byWSSecTimestamp.getId()
Get the wsu:Id value of the Timestamp- Returns:
- TODO
-
WSSecTimestamp()