|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ws.security.message.WSSecBase
org.apache.ws.security.message.WSSecTimestamp
public class WSSecTimestamp
Builds a WS Timestamp and inserts it into the SOAP Envelope. Refer to the WS specification 1.0. chapter 10 / appendix A.2
| Field Summary |
|---|
| Fields inherited from class org.apache.ws.security.message.WSSecBase |
|---|
callbackLookup, doDebug, keyIdentifierType, parts, password, user |
| Constructor Summary | |
|---|---|
WSSecTimestamp()
|
|
WSSecTimestamp(WSSConfig config)
|
|
| Method Summary | |
|---|---|
org.w3c.dom.Document |
build(org.w3c.dom.Document doc,
WSSecHeader secHeader)
Adds a new Timestamp to a soap envelope. |
org.w3c.dom.Element |
getElement()
Get the timestamp element generated during prepare(). |
java.lang.String |
getId()
Get the id generated during prepare(). |
void |
prepare(org.w3c.dom.Document doc)
Creates a Timestamp element. |
void |
prependToHeader(WSSecHeader secHeader)
Prepends the Timestamp element to the elements already in the Security header. |
void |
setTimeToLive(int ttl)
Set the time to live. |
| Methods inherited from class org.apache.ws.security.message.WSSecBase |
|---|
getKeyIdentifierType, getWsConfig, setBodyID, setCallbackLookup, setKeyIdentifierType, setParts, setUserInfo, setWsConfig, setWsuId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WSSecTimestamp()
public WSSecTimestamp(WSSConfig config)
| Method Detail |
|---|
public void setTimeToLive(int ttl)
Created and the Expires in
Timestamp.
ttl - The time to live in secondpublic void prepare(org.w3c.dom.Document doc)
prepare() the
parameter such as timeToLive can be set if the default
value is not suitable.
doc - The SOAP envelope as W3C documentpublic void prependToHeader(WSSecHeader secHeader)
prepare(). This
allows to insert the Timestamp element at any position in the Security
header.
secHeader - The security header that holds the Signature element.
public org.w3c.dom.Document build(org.w3c.dom.Document doc,
WSSecHeader secHeader)
Timestamp to a soap envelope.
A complete Timestamp is constructed and added to the
wsse:Security header.
doc - The SOAP envelope as W3C documentsecHeader - The security header that hold this Timestamp
java.lang.Exceptionpublic java.lang.String getId()
prepare().
Returns the the value of wsu:Id attribute of this Timestamp.
prepareToken() was not called before.public org.w3c.dom.Element getElement()
prepare().
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||