public class Timestamp
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Calendar |
created |
protected java.util.Vector |
customElements |
protected org.w3c.dom.Element |
element |
protected java.util.Calendar |
expires |
| Constructor and Description |
|---|
Timestamp(boolean milliseconds,
org.w3c.dom.Document doc,
int ttl)
Constructs a
Timestamp object according
to the defined parameters. |
Timestamp(org.w3c.dom.Element element)
Constructs a
Timestamp object and parses the
wsu:Timestamp element to initialize it. |
| Modifier and Type | Method and Description |
|---|---|
void |
addCustomElement(org.w3c.dom.Document doc,
org.w3c.dom.Element customElement)
Creates and adds a custom element to this Timestamp
|
java.util.Calendar |
getCreated()
Get the time of creation.
|
protected java.util.Calendar |
getCurrentTime()
Get the current time
|
java.util.Vector |
getCustomElements()
Get the the custom elements from this Timestamp
|
org.w3c.dom.Element |
getElement()
Returns the dom element of this
Timestamp object. |
java.util.Calendar |
getExpires()
Get the time of expiration.
|
java.lang.String |
getID() |
void |
setID(java.lang.String id)
Set wsu:Id attribute of this timestamp
|
java.lang.String |
toString()
Returns the string representation of the token.
|
protected org.w3c.dom.Element element
protected java.util.Vector customElements
protected java.util.Calendar created
protected java.util.Calendar expires
public Timestamp(org.w3c.dom.Element element)
throws WSSecurityException
Timestamp object and parses the
wsu:Timestamp element to initialize it.element - the wsu:Timestamp element that
contains the timestamp dataWSSecurityExceptionpublic Timestamp(boolean milliseconds,
org.w3c.dom.Document doc,
int ttl)
Timestamp object according
to the defined parameters.doc - the SOAP envelope as Documentttl - the time to live (validity of the security semantics) in secondsprotected java.util.Calendar getCurrentTime()
public org.w3c.dom.Element getElement()
Timestamp object.wsse:UsernameToken elementpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Calendar getCreated()
public java.util.Calendar getExpires()
public void addCustomElement(org.w3c.dom.Document doc,
org.w3c.dom.Element customElement)
public java.util.Vector getCustomElements()
public void setID(java.lang.String id)
id - public java.lang.String getID()
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.