Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.commons.httpclient.UsernamePasswordCredentials
Credentials
.
Constructor Summary | |
| |
| |
|
Method Summary | |
boolean |
|
String |
|
String |
|
int |
|
void |
|
void |
|
String |
|
public UsernamePasswordCredentials()
Deprecated. Do not use. Null user name no longer allowed
Default constructor.
public UsernamePasswordCredentials(String usernamePassword)
The constructor with the username and password combined string argument.
- Parameters:
usernamePassword
- the username:password formed string
- See Also:
toString()
public UsernamePasswordCredentials(String userName, String password)
The constructor with the username and password arguments.
- Parameters:
userName
- the user namepassword
- the password
public boolean equals(Object o)
These credentials are assumed equal if the username and password are the same.
- Parameters:
o
- The other object to compare with.
- Returns:
true
if the object is equivalent.
public String getPassword()
Password property getter.
- Returns:
- the password
- See Also:
setPassword(String)
public String getUserName()
User name property getter.
- Returns:
- the userName
- See Also:
setUserName(String)
public int hashCode()
Does a hash of both user name and password.
- Returns:
- The hash code including user name and password.
public void setPassword(String password)
Deprecated. Do not use. The UsernamePasswordCredentials objects should be immutable
Password property setter.
- Parameters:
password
-
- See Also:
getPassword()
public void setUserName(String userName)
Deprecated. Do not use. The UsernamePasswordCredentials objects should be immutable
User name property setter. User name may not be null.
- Parameters:
userName
-
- See Also:
getUserName()
public String toString()
Get this object string.
- Returns:
- the username:password formed string