|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ws.security.message.WSSecHeader
public class WSSecHeader
This class implements WS Security header.
Setup a Security header with a specified actor and mustunderstand flag.
The defaults for actor and mustunderstand are: empty actor and
mustunderstand is true.
| Field Summary | |
|---|---|
protected String |
actor
|
protected boolean |
doDebug
|
protected boolean |
mustunderstand
|
| Constructor Summary | |
|---|---|
WSSecHeader()
Constructor. |
|
WSSecHeader(String actor)
Constructor. |
|
WSSecHeader(String act,
boolean mu)
Constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String actor
protected boolean mustunderstand
protected boolean doDebug
| Constructor Detail |
|---|
public WSSecHeader()
public WSSecHeader(String actor)
actor - The actor name of the wsse:Security header
public WSSecHeader(String act,
boolean mu)
act - The actor name of the wsse:Security headermu - Set mustUnderstand to true or false| Method Detail |
|---|
public 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
WSSecurityException
public Element insertSecurityHeader(Document doc)
throws WSSecurityException
doc - A SOAP envelope as Document
wsse:Security element
WSSecurityException
public void removeSecurityHeader(Document doc)
throws WSSecurityException
WSSecurityException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||