|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ws.security.message.token.Timestamp
public class Timestamp
Timestamp according to SOAP Message Security 1.0, chapter 10 / appendix A.2
| Field Summary | |
|---|---|
protected java.util.Date |
createdDate
|
protected java.util.List<org.w3c.dom.Element> |
customElements
|
protected org.w3c.dom.Element |
element
|
protected java.util.Date |
expiresDate
|
| Constructor Summary | |
|---|---|
Timestamp(boolean milliseconds,
org.w3c.dom.Document doc,
int ttl)
Constructs a Timestamp object according
to the defined parameters. |
|
Timestamp(org.w3c.dom.Element timestampElement)
Constructs a Timestamp object and parses the
wsu:Timestamp element to initialize it. |
|
Timestamp(org.w3c.dom.Element timestampElement,
boolean bspCompliant)
Constructs a Timestamp object and parses the
wsu:Timestamp element to initialize it. |
|
| Method Summary | |
|---|---|
void |
addCustomElement(org.w3c.dom.Document doc,
org.w3c.dom.Element customElement)
Creates and adds a custom element to this Timestamp |
void |
addWSUNamespace()
Add the WSU Namespace to this T. |
boolean |
equals(java.lang.Object object)
|
java.util.Date |
getCreated()
Get the time of creation. |
java.util.List<org.w3c.dom.Element> |
getCustomElements()
Get the the custom elements from this Timestamp |
org.w3c.dom.Element |
getElement()
Returns the dom element of this Timestamp object. |
java.util.Date |
getExpires()
Get the time of expiration. |
java.lang.String |
getID()
|
int |
hashCode()
|
boolean |
isExpired()
Return true if the current Timestamp is expired, meaning if the "Expires" value is before the current time. |
void |
setID(java.lang.String id)
Set wsu:Id attribute of this timestamp |
java.lang.String |
toString()
Returns the string representation of the token. |
boolean |
verifyCreated(int timeToLive,
int futureTimeToLive)
Return true if the "Created" value is before the current time minus the timeToLive argument, and if the Created value is not "in the future". |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected org.w3c.dom.Element element
protected java.util.List<org.w3c.dom.Element> customElements
protected java.util.Date createdDate
protected java.util.Date expiresDate
| Constructor Detail |
|---|
public Timestamp(org.w3c.dom.Element timestampElement)
throws WSSecurityException
Timestamp object and parses the
wsu:Timestamp element to initialize it.
timestampElement - the wsu:Timestamp element that
contains the timestamp data
WSSecurityException
public Timestamp(org.w3c.dom.Element timestampElement,
boolean bspCompliant)
throws WSSecurityException
Timestamp object and parses the
wsu:Timestamp element to initialize it.
timestampElement - the wsu:Timestamp element that
contains the timestamp databspCompliant - whether the Timestamp processing complies with the BSP spec
WSSecurityException
public 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 seconds| Method Detail |
|---|
public void addWSUNamespace()
public org.w3c.dom.Element getElement()
Timestamp object.
wsse:UsernameToken elementpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Date getCreated()
public java.util.Date getExpires()
public void addCustomElement(org.w3c.dom.Document doc,
org.w3c.dom.Element customElement)
public java.util.List<org.w3c.dom.Element> getCustomElements()
public void setID(java.lang.String id)
id - public java.lang.String getID()
public boolean isExpired()
public boolean verifyCreated(int timeToLive,
int futureTimeToLive)
timeToLive - the value in seconds for the validity of the Created timefutureTimeToLive - the value in seconds for the future validity of the Created time
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object object)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||