public class WSSAddUsernameToken extends WSBaseMessage
actor, doDebug, keyIdentifierType, mustunderstand, parts, password, timeToLive, user, wssConfig
Constructor and Description |
---|
WSSAddUsernameToken()
Deprecated.
replaced by
WSSecUsernameToken.WSSecUsernameToken() |
WSSAddUsernameToken(String actor)
Deprecated.
replaced by
WSSecUsernameToken.WSSecUsernameToken()
and WSSecHeader for actor specification. |
WSSAddUsernameToken(String actor,
boolean mu)
Deprecated.
replaced by
WSSecUsernameToken.WSSecUsernameToken()
and WSSecHeader for actor and mustunderstand
specification. |
Modifier and Type | Method and Description |
---|---|
void |
addCreated(org.w3c.dom.Document doc)
Deprecated.
replaced by
WSSecUsernameToken.addCreated() |
void |
addNonce(org.w3c.dom.Document doc)
Deprecated.
replaced by
WSSecUsernameToken.addNonce() |
org.w3c.dom.Document |
build(org.w3c.dom.Document doc,
String username,
String password)
Deprecated.
|
String |
getId()
Deprecated.
replaced by
WSSecUsernameToken.getId() |
byte[] |
getSecretKey()
Deprecated.
replaced by
WSSecUsernameToken.getSecretKey() |
org.w3c.dom.Document |
preSetUsernameToken(org.w3c.dom.Document doc,
String username,
String password) |
void |
setId(String id)
Deprecated.
no replacement, id is created by default in
WSSecUsernameToken |
void |
setPasswordType(String pwType)
Deprecated.
replaced by
WSSecUsernameToken.setPasswordType(String) |
getKeyIdentifierType, insertSecurityHeader, setActor, setBodyID, setKeyIdentifierType, setMustUnderstand, setParts, setTimeToLive, setUserInfo, setWsConfig, setWsuId
public WSSAddUsernameToken()
WSSecUsernameToken.WSSecUsernameToken()
public WSSAddUsernameToken(String actor)
WSSecUsernameToken.WSSecUsernameToken()
and WSSecHeader
for actor specification.actor
- the name of the actor of the wsse:Security
headerpublic WSSAddUsernameToken(String actor, boolean mu)
WSSecUsernameToken.WSSecUsernameToken()
and WSSecHeader
for actor and mustunderstand
specification.actor
- The name of the actor of the wsse:Security
headermu
- Set mustUnderstand
to true or falsepublic void setPasswordType(String pwType)
WSSecUsernameToken.setPasswordType(String)
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)
WSSecUsernameToken.addNonce()
public void addCreated(org.w3c.dom.Document doc)
WSSecUsernameToken.addCreated()
public void setId(String id)
WSSecUsernameToken
id
- public byte[] getSecretKey()
WSSecUsernameToken.getSecretKey()
public String getId()
WSSecUsernameToken.getId()
public org.w3c.dom.Document preSetUsernameToken(org.w3c.dom.Document doc, String username, String password)
public org.w3c.dom.Document build(org.w3c.dom.Document doc, String username, String password)
WSSecUsernameToken.build(Document, WSSecHeader)
and
WSSecBase.setUserInfo(String, String)
UsernameToken
to a soap envelope.
A complete UsernameToken
is constructed and added to
the wsse:Security
header.doc
- The SOAP envelope as W3C documentusername
- The username to set in the UsernameTokenpassword
- The password of the userCopyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.