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 TypeMethodDescriptionvoid
addCustomElement
(Document doc, Element customElement) Creates and adds a custom element to this TimestampGet the time of creation.protected Calendar
Get the current timeGet the the custom elements from this TimestampReturns the dom element of thisTimestamp
object.Get the time of expiration.getID()
Returns the value of the wsu:Id attributevoid
Set wsu:Id attribute of this timestamptoString()
Returns the string representation of the token.
-
Field Details
-
element
-
customElements
-
created
-
expires
-
-
Constructor Details
-
Timestamp
Constructs aTimestamp
object and parses thewsu:Timestamp
element to initialize it.- Parameters:
element
- thewsu:Timestamp
element that contains the timestamp data- Throws:
WSSecurityException
-
Timestamp
Constructs aTimestamp
object according to the defined parameters.- Parameters:
doc
- the SOAP envelope asDocument
ttl
- the time to live (validity of the security semantics) in seconds
-
-
Method Details
-
getCurrentTime
Get the current time- Returns:
- calendar the current time
-
getElement
Returns the dom element of thisTimestamp
object.- Returns:
- the
wsse:UsernameToken
element
-
toString
Returns the string representation of the token. -
getCreated
Get the time of creation.- Returns:
- the "created" time
-
getExpires
Get the time of expiration.- Returns:
- the "expires" time
-
addCustomElement
Creates and adds a custom element to this Timestamp -
getCustomElements
Get the the custom elements from this Timestamp- Returns:
- the vector containing the custom elements.
-
setID
Set wsu:Id attribute of this timestamp- Parameters:
id
-
-
getID
Returns the value of the wsu:Id attribute- Returns:
- TODO
-