|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.ws.security.message.WSBaseMessage
org.apache.ws.security.message.WSSAddUsernameToken
Builds a WS UsernameToken and inserts it into the SOAP Envelope. Refer to the WS specification, UsernameToken profile
| Field Summary |
| Fields inherited from class org.apache.ws.security.message.WSBaseMessage |
actor, doDebug, keyIdentifierType, mustunderstand, parts, password, timeToLive, user, wssConfig |
| Constructor Summary | |
WSSAddUsernameToken()
Constructor. |
|
WSSAddUsernameToken(java.lang.String actor)
Constructor. |
|
WSSAddUsernameToken(java.lang.String actor,
boolean mu)
Constructor. |
|
| Method Summary | |
void |
addCreated(org.w3c.dom.Document doc)
Creates and adds a Created element to the UsernameToken |
void |
addNonce(org.w3c.dom.Document doc)
Creates and adds a Nonce element to the UsernameToken |
org.w3c.dom.Document |
build(org.w3c.dom.Document doc,
java.lang.String username,
java.lang.String password)
Adds a new UsernameToken to a soap envelope. |
java.lang.String |
getId()
get the id |
byte[] |
getSecretKey()
|
org.w3c.dom.Document |
preSetUsernameToken(org.w3c.dom.Document doc,
java.lang.String username,
java.lang.String password)
|
void |
setId(java.lang.String id)
set the id |
void |
setPasswordType(java.lang.String pwType)
Defines how to construct the password element of the UsernameToken. |
| Methods inherited from class org.apache.ws.security.message.WSBaseMessage |
getKeyIdentifierType, insertSecurityHeader, setActor, setBodyID, setKeyIdentifierType, setMustUnderstand, setParts, setTimeToLive, setUserInfo, setWsConfig, setWsuId |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WSSAddUsernameToken()
public WSSAddUsernameToken(java.lang.String actor)
actor - the name of the actor of the wsse:Security header
public WSSAddUsernameToken(java.lang.String actor,
boolean mu)
actor - The name of the actor of the wsse:Security headermu - Set mustUnderstand to true or false| Method Detail |
public void setPasswordType(java.lang.String pwType)
UsernameToken.
pwType - contains the password type. Only allowed values are
WSConstants.PASSWORD_DIGEST and
WSConstants.PASSWORD_TEXT.public void addNonce(org.w3c.dom.Document doc)
public void addCreated(org.w3c.dom.Document doc)
public void setId(java.lang.String id)
id - public byte[] getSecretKey()
public java.lang.String getId()
public org.w3c.dom.Document preSetUsernameToken(org.w3c.dom.Document doc,
java.lang.String username,
java.lang.String password)
public org.w3c.dom.Document build(org.w3c.dom.Document doc,
java.lang.String username,
java.lang.String password)
UsernameToken to a soap envelope.
A complete UsernameToken is constructed and added to
the wsse:Security header.
doc - The SOAP enevlope as W3C documentusername - The username to set in the UsernameTokenpassword - The password of the user
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||