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 |
---|---|
Element |
getSecurityHeader()
Get the security header element of this instance.
|
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. |
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 Element getSecurityHeader()
public boolean isEmpty() throws WSSecurityException
WSSecurityException
public Element insertSecurityHeader() throws WSSecurityException
wsse:Security
elementWSSecurityException
public void removeSecurityHeader() throws WSSecurityException
WSSecurityException
Copyright © 2017 JBoss by Red Hat. All rights reserved.