|
||||||||||
| 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 Calendar |
created
|
protected Vector |
customElements
|
protected Element |
element
|
protected Calendar |
expires
|
| Constructor Summary | |
|---|---|
Timestamp(boolean milliseconds,
Document doc,
int ttl)
Constructs a Timestamp object according
to the defined parameters. |
|
Timestamp(Element element)
Constructs a Timestamp object and parses the
wsu:Timestamp element to initialize it. |
|
| Method Summary | |
|---|---|
void |
addCustomElement(Document doc,
Element customElement)
Creates and adds a custom element to this Timestamp |
Calendar |
getCreated()
Get the time of creation. |
protected Calendar |
getCurrentTime()
Get the current time |
Vector |
getCustomElements()
Get the the custom elements from this Timestamp |
Element |
getElement()
Returns the dom element of this Timestamp object. |
Calendar |
getExpires()
Get the time of expiration. |
String |
getID()
|
void |
setID(String id)
Set wsu:Id attribute of this timestamp |
String |
toString()
Returns the string representation of the token. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Element element
protected Vector customElements
protected Calendar created
protected Calendar expires
| Constructor Detail |
|---|
public Timestamp(Element element)
throws WSSecurityException
Timestamp object and parses the
wsu:Timestamp element to initialize it.
element - the wsu:Timestamp element that
contains the timestamp data
WSSecurityException
public Timestamp(boolean milliseconds,
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 |
|---|
protected Calendar getCurrentTime()
public Element getElement()
Timestamp object.
wsse:UsernameToken elementpublic String toString()
toString in class Objectpublic Calendar getCreated()
public Calendar getExpires()
public void addCustomElement(Document doc,
Element customElement)
public Vector getCustomElements()
public void setID(String id)
id - public String getID()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||