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 |
|---|---|
org.w3c.dom.Element |
getSecurityHeader()
Get the security header element of this instance.
|
org.w3c.dom.Element |
insertSecurityHeader(org.w3c.dom.Document doc)
Creates a security header and inserts it as child into the SOAP Envelope.
|
boolean |
isEmpty(org.w3c.dom.Document doc)
Returns whether the security header is empty
|
void |
removeSecurityHeader(org.w3c.dom.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 org.w3c.dom.Element getSecurityHeader()
public boolean isEmpty(org.w3c.dom.Document doc)
public org.w3c.dom.Element insertSecurityHeader(org.w3c.dom.Document doc)
doc - A SOAP envelope as Documentwsse:Security elementpublic void removeSecurityHeader(org.w3c.dom.Document doc)
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.