public class WSSecTimestamp extends WSSecBase
attachmentCallbackHandler, callbackLookup, expandXopInclude, keyIdentifierType, password, storeBytesInAttachment, user| Constructor and Description |
|---|
WSSecTimestamp(Document doc) |
WSSecTimestamp(WSSecHeader securityHeader) |
| Modifier and Type | Method and Description |
|---|---|
Document |
build()
Adds a new
Timestamp to a soap envelope. |
Element |
getElement()
Get the timestamp element generated during
prepare(). |
String |
getId()
Get the id generated during
prepare(). |
WSTimeSource |
getWsTimeSource() |
boolean |
isPrecisionInMilliSeconds() |
void |
prepare()
Creates a Timestamp element.
|
void |
prependToHeader()
Prepends the Timestamp element to the elements already in the Security
header.
|
void |
setPrecisionInMilliSeconds(boolean precisionInMilliSeconds) |
void |
setTimeToLive(int ttl)
Set the time to live.
|
void |
setWsTimeSource(WSTimeSource wsTimeSource) |
getDocument, getIdAllocator, getKeyIdentifierType, getParts, getSecurityHeader, getWsDocInfo, isExpandXopInclude, setAttachmentCallbackHandler, setBodyID, setCallbackLookup, setExpandXopInclude, setIdAllocator, setKeyIdentifierType, setStoreBytesInAttachment, setUserInfo, setWsDocInfo, setWsuIdpublic WSSecTimestamp(WSSecHeader securityHeader)
public WSSecTimestamp(Document doc)
public void setTimeToLive(int ttl)
Created and the Expires in
Timestamp. ttl - The time to live in secondpublic void prepare()
prepare() the
parameter such as timeToLive can be set if the default
value is not suitable.public void prependToHeader()
prepare(). This
allows to insert the Timestamp element at any position in the Security
header.public Document build()
Timestamp to a soap envelope.
A complete Timestamp is constructed and added to the
wsse:Security header.Exceptionpublic String getId()
prepare().
Returns the the value of wsu:Id attribute of this Timestamp.prepareToken() was not called before.public WSTimeSource getWsTimeSource()
public void setWsTimeSource(WSTimeSource wsTimeSource)
public Element getElement()
prepare().public boolean isPrecisionInMilliSeconds()
public void setPrecisionInMilliSeconds(boolean precisionInMilliSeconds)
Copyright © 2019 JBoss by Red Hat. All rights reserved.