org.apache.commons.httpclient
public class UsernamePasswordCredentials extends Object implements Credentials
Username and password Credentials.
Version: $Revision: 480424 $ $Date: 2006-11-29 06:56:49 +0100 (Wed, 29 Nov 2006) $
Constructor Summary | |
---|---|
UsernamePasswordCredentials()
Default constructor.
| |
UsernamePasswordCredentials(String usernamePassword)
The constructor with the username and password combined string argument.
| |
UsernamePasswordCredentials(String userName, String password)
The constructor with the username and password arguments.
|
Method Summary | |
---|---|
boolean | equals(Object o)
These credentials are assumed equal if the username and password are the
same.
|
String | getPassword()
Password property getter.
|
String | getUserName()
User name property getter.
|
int | hashCode()
Does a hash of both user name and password.
|
void | setPassword(String password)
Password property setter.
|
void | setUserName(String userName)
User name property setter. |
String | toString()
Get this object string.
|
Deprecated: Do not use. Null user name no longer allowed
Default constructor.Parameters: usernamePassword the username:password formed string
See Also: UsernamePasswordCredentials
Parameters: userName the user name password the password
Parameters: o The other object to compare with.
Returns: true
if the object is equivalent.
Returns: the password
See Also: setPassword
Returns: the userName
See Also: setUserName
Returns: The hash code including user name and password.
Deprecated: Do not use. The UsernamePasswordCredentials objects should be immutable
Password property setter.Parameters: password
Deprecated: Do not use. The UsernamePasswordCredentials objects should be immutable
User name property setter. User name may not be null.Parameters: userName
Returns: the username:password formed string