Class Timestamp
java.lang.Object
org.apache.ws.security.message.token.Timestamp
Timestamp according to SOAP Message Security 1.0,
chapter 10 / appendix A.2
- Author:
- Christof Soehngen (christof.soehngen@syracom.de)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCustomElement(Document doc, Element customElement) Creates and adds a custom element to this TimestampGet the time of creation.protected CalendarGet the current timeGet the the custom elements from this TimestampReturns the dom element of thisTimestampobject.Get the time of expiration.getID()Returns the value of the wsu:Id attributevoidSet wsu:Id attribute of this timestamptoString()Returns the string representation of the token.
-
Field Details
-
element
-
customElements
-
created
-
expires
-
-
Constructor Details
-
Timestamp
Constructs aTimestampobject and parses thewsu:Timestampelement to initialize it.- Parameters:
element- thewsu:Timestampelement that contains the timestamp data- Throws:
WSSecurityException
-
Timestamp
Constructs aTimestampobject according to the defined parameters.- Parameters:
doc- the SOAP envelope asDocumentttl- the time to live (validity of the security semantics) in seconds
-
-
Method Details
-
getCurrentTime
-
getElement
Returns the dom element of thisTimestampobject.- Returns:
- the
wsse:UsernameTokenelement
-
toString
-
getCreated
-
getExpires
-
addCustomElement
-
getCustomElements
Get the the custom elements from this Timestamp- Returns:
- the vector containing the custom elements.
-
setID
-
getID
-