Class UsernamePasswordCredentials
java.lang.Object
edu.internet2.middleware.grouperClientExt.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) $
-
Constructor Summary
ConstructorDescriptionDeprecated.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 TypeMethodDescriptionboolean
These credentials are assumed equal if the username and password are the same.Password property getter.User name property getter.int
hashCode()
Does a hash of both user name and password.void
setPassword
(String password) Deprecated.Do not use.void
setUserName
(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
The constructor with the username and password arguments.- Parameters:
userName
- the user namepassword
- the password
-
-
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
User name property getter.- Returns:
- the userName
- See Also:
-
setPassword
Deprecated.Do not use. The UsernamePasswordCredentials objects should be immutablePassword property setter.- Parameters:
password
-- See Also:
-
getPassword
Password property getter.- Returns:
- the password
- See Also:
-
toString
Get this object string. -
hashCode
public int hashCode()Does a hash of both user name and password. -
equals
These credentials are assumed equal if the username and password are the same.
-