| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.httpclient.UsernamePasswordCredentials
public class UsernamePasswordCredentials
Username and password Credentials.
| Constructor Summary | |
|---|---|
| UsernamePasswordCredentials()Deprecated. Do not use. Null user name no longer allowed | |
| 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)Deprecated. Do not use. The UsernamePasswordCredentials objects should be immutable | 
|  void | setUserName(String userName)Deprecated. Do not use. The UsernamePasswordCredentials objects should be immutable | 
|  String | toString()Get this object string. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public UsernamePasswordCredentials()
public UsernamePasswordCredentials(String usernamePassword)
usernamePassword - the username:password formed stringtoString()
public UsernamePasswordCredentials(String userName,
                                   String password)
userName - the user namepassword - the password| Method Detail | 
|---|
public void setUserName(String userName)
userName - getUserName()public String getUserName()
setUserName(String)public void setPassword(String password)
password - getPassword()public String getPassword()
setPassword(String)public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object o)
equals in class Objecto - The other object to compare with.
true if the object is equivalent.| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||