public class WSSecHeader
extends java.lang.Object
actor and
mustunderstand is true.| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
actor |
protected boolean |
doDebug |
protected boolean |
mustunderstand |
| Constructor and Description |
|---|
WSSecHeader()
Constructor.
|
WSSecHeader(java.lang.String actor)
Constructor.
|
WSSecHeader(java.lang.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(java.lang.String act)
set actor name.
|
void |
setMustUnderstand(boolean mu)
Set the
mustUnderstand flag for the
wsse:Security header. |
protected java.lang.String actor
protected boolean mustunderstand
protected boolean doDebug
public WSSecHeader()
public WSSecHeader(java.lang.String actor)
actor - The actor name of the wsse:Security headerpublic WSSecHeader(java.lang.String act,
boolean mu)
act - The actor name of the wsse:Security headermu - Set mustUnderstand to true or falsepublic void setActor(java.lang.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-2020 The Apache Software Foundation. All Rights Reserved.