public class WSSecHeader extends Object
actor and
mustunderstand is true.| Modifier and Type | Field and Description |
|---|---|
protected String |
actor |
protected boolean |
doDebug |
protected boolean |
mustunderstand |
| Constructor and Description |
|---|
WSSecHeader()
Constructor.
|
WSSecHeader(String actor)
Constructor.
|
WSSecHeader(String act,
boolean mu)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Element |
getSecurityHeader()
Get the security header element of this instance.
|
Element |
insertSecurityHeader(Document doc)
Creates a security header and inserts it as child into the SOAP Envelope.
|
boolean |
isEmpty(Document doc)
Returns whether the security header is empty
|
void |
removeSecurityHeader(Document doc) |
void |
setActor(String act)
set actor name.
|
void |
setMustUnderstand(boolean mu)
Set the
mustUnderstand flag for the
wsse:Security header. |
protected String actor
protected boolean mustunderstand
protected boolean doDebug
public WSSecHeader()
public WSSecHeader(String actor)
actor - The actor name of the wsse:Security headerpublic WSSecHeader(String act, boolean mu)
act - The actor name of the wsse:Security headermu - Set mustUnderstand to true or falsepublic void setActor(String act)
act - The actor name of the wsse:Security headerpublic void setMustUnderstand(boolean mu)
mustUnderstand flag for the
wsse:Security header.mu - Set mustUnderstand to true or falsepublic Element getSecurityHeader()
public boolean isEmpty(Document doc) throws WSSecurityException
WSSecurityExceptionpublic Element insertSecurityHeader(Document doc) throws WSSecurityException
doc - A SOAP envelope as Documentwsse:Security elementWSSecurityExceptionpublic void removeSecurityHeader(Document doc) throws WSSecurityException
WSSecurityExceptionCopyright © 2004–2015 The Apache Software Foundation. All rights reserved.