Class UsernamePasswordCredentials
java.lang.Object
org.apache.commons.httpclient.UsernamePasswordCredentials
- All Implemented Interfaces:
Credentials
- Direct Known Subclasses:
NTCredentials
Username and password Credentials.
- Version:
- $Revision: 480424 $ $Date: 2006-11-29 06:56:49 +0100 (Wed, 29 Nov 2006) $
- Author:
- Remy Maucherat, Sean C. Sullivan, Mike Bowler, Oleg Kalnichevski
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Do not use.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
Modifier and TypeMethodDescriptionbooleanThese credentials are assumed equal if the username and password are the same.Password property getter.User name property getter.inthashCode()Does a hash of both user name and password.voidsetPassword(String password) Deprecated.Do not use.voidsetUserName(String userName) Deprecated.Do not use.toString()Get this object string.
-
Constructor Details
-
UsernamePasswordCredentials
public UsernamePasswordCredentials()Deprecated.Do not use. Null user name no longer allowedDefault constructor. -
UsernamePasswordCredentials
The constructor with the username and password combined string argument.- Parameters:
usernamePassword- the username:password formed string- See Also:
-
UsernamePasswordCredentials
-
-
Method Details
-
setUserName
Deprecated.Do not use. The UsernamePasswordCredentials objects should be immutableUser name property setter. User name may not be null.- Parameters:
userName-- See Also:
-
getUserName
-
setPassword
Deprecated.Do not use. The UsernamePasswordCredentials objects should be immutablePassword property setter.- Parameters:
password-- See Also:
-
getPassword
-
toString
-
hashCode
-
equals
-