public class WSSecHeader extends Object
actor
and
mustunderstand
is true.Constructor and Description |
---|
WSSecHeader(Document doc)
Constructor.
|
WSSecHeader(String act,
boolean mu,
Document doc)
Constructor.
|
WSSecHeader(String actor,
Document doc)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Document |
getSecurityHeaderDoc()
Get the security header document of this instance.
|
Element |
getSecurityHeaderElement()
Get the security header element of this instance.
|
String |
getWsuPrefix() |
Element |
insertSecurityHeader()
Creates a security header and inserts it as child into the SOAP Envelope.
|
boolean |
isEmpty()
Returns whether the security header is empty
|
void |
removeSecurityHeader() |
void |
setActor(String act)
set actor name.
|
void |
setMustUnderstand(boolean mu)
Set the
mustUnderstand flag for the
wsse:Security header. |
void |
setSecurityHeaderElement(Element securityHeaderElement) |
public WSSecHeader(Document doc)
doc
- The Document to use when creating the security headerpublic WSSecHeader(String actor, Document doc)
actor
- The actor name of the wsse:Security
headerdoc
- The Document to use when creating the security headerpublic 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 Document getSecurityHeaderDoc()
public Element getSecurityHeaderElement()
public void setSecurityHeaderElement(Element securityHeaderElement)
public boolean isEmpty() throws WSSecurityException
WSSecurityException
public Element insertSecurityHeader() throws WSSecurityException
wsse:Security
elementWSSecurityException
public void removeSecurityHeader() throws WSSecurityException
WSSecurityException
public String getWsuPrefix()
Copyright © 2021 JBoss by Red Hat. All rights reserved.