public class UserNameToken extends WSSecurityOption implements Serializable
Java class for UserNameToken complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="UserNameToken">
<complexContent>
<extension base="{}WSSecurityOption">
<attribute name="user" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="password" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="passwordType" type="{}UserTokenPasswordType" />
<attribute name="nonce" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
<attribute name="created" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected Boolean |
created |
static UserNameToken |
EMPTY_INSTANCE |
protected Boolean |
nonce |
protected String |
password |
protected UserTokenPasswordType |
passwordType |
protected String |
user |
id, parts, type| Constructor and Description |
|---|
UserNameToken() |
| Modifier and Type | Method and Description |
|---|---|
UserNameToken |
copy()
Deep copies the fields of the this model into a new instance of this class and returns it.
|
UserNameToken |
copy(boolean isDeep)
Copies the fields of the this model (optionally deeply) into a new instance of this class and returns it.
|
protected UserNameToken |
copy(UserNameToken nobj,
boolean isDeep)
Copies the fields of the this model (optionally deeply) into the given instance and returns it.
|
boolean |
equals(Object o) |
String |
getPassword()
Gets the value of the password property.
|
UserTokenPasswordType |
getPasswordType()
Gets the value of the passwordType property.
|
String |
getUser()
Gets the value of the user property.
|
int |
hashCode() |
boolean |
isCreated()
Gets the value of the created property.
|
boolean |
isNonce()
Gets the value of the nonce property.
|
void |
setCreated(Boolean value)
Sets the value of the created property.
|
void |
setNonce(Boolean value)
Sets the value of the nonce property.
|
void |
setPassword(String value)
Sets the value of the password property.
|
void |
setPasswordType(UserTokenPasswordType value)
Sets the value of the passwordType property.
|
void |
setUser(String value)
Sets the value of the user property.
|
String |
toString() |
UserNameToken |
withCreated(Boolean newValue)
Sets the created property to the given newValue and returns this instance.
|
UserNameToken |
withNonce(Boolean newValue)
Sets the nonce property to the given newValue and returns this instance.
|
UserNameToken |
withPassword(String newValue)
Sets the password property to the given newValue and returns this instance.
|
UserNameToken |
withPasswordType(UserTokenPasswordType newValue)
Sets the passwordType property to the given newValue and returns this instance.
|
UserNameToken |
withUser(String newValue)
Sets the user property to the given newValue and returns this instance.
|
protected String user
protected String password
protected UserTokenPasswordType passwordType
protected Boolean nonce
protected Boolean created
public static final UserNameToken EMPTY_INSTANCE
public String getUser()
Stringpublic void setUser(String value)
value - allowed object is
Stringpublic String getPassword()
Stringpublic void setPassword(String value)
value - allowed object is
Stringpublic UserTokenPasswordType getPasswordType()
UserTokenPasswordTypepublic void setPasswordType(UserTokenPasswordType value)
value - allowed object is
UserTokenPasswordTypepublic boolean isNonce()
Booleanpublic void setNonce(Boolean value)
value - allowed object is
Booleanpublic boolean isCreated()
Booleanpublic void setCreated(Boolean value)
value - allowed object is
Booleanpublic int hashCode()
hashCode in class WSSecurityOptionpublic String toString()
toString in class WSSecurityOptionpublic boolean equals(Object o)
equals in class WSSecurityOptionpublic UserNameToken copy()
copy in class WSSecurityOptionpublic UserNameToken copy(boolean isDeep)
copy in class WSSecurityOptionprotected UserNameToken copy(UserNameToken nobj, boolean isDeep)
public UserNameToken withUser(String newValue)
public UserNameToken withPassword(String newValue)
public UserNameToken withPasswordType(UserTokenPasswordType newValue)
public UserNameToken withNonce(Boolean newValue)
public UserNameToken withCreated(Boolean newValue)