|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.commons.connector.UserPassword
public final class UserPassword
Provides UserName and Password.
| Field Summary | |
|---|---|
static UserPassword |
EMPTY_USER_PASSWORD
A UserPassword instance with a null userName and null password. |
| Method Summary | |
|---|---|
boolean |
equals(Object other)
|
static UserPassword |
fromUserPassword(String user,
String password)
Returns a new UserPassword instance wrapping the given user
and password. |
static UserPassword |
fromUserPassword(UserPassword up)
Constructs a new UserPassword instance containing exactly the same user and password as the up instance provides. |
String |
getPassword()
|
String |
getUserName()
|
int |
hashCode()
|
static boolean |
isEmpty(UserPassword up)
Returns true if the UserPassword instance up contains a null
UserName and null Password. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final UserPassword EMPTY_USER_PASSWORD
| Method Detail |
|---|
public static UserPassword fromUserPassword(UserPassword up)
up instance provides.
up - The UserPassword instance to be cloned.
up instance provides.
public static UserPassword fromUserPassword(String user,
String password)
user
and password.
user - UserNamepassword - Password
user
and password.public String getPassword()
public String getUserName()
public static boolean isEmpty(UserPassword up)
up contains a null
UserName and null Password.
up - UserPassword to be checked.
up contains a null
UserName and null Password; otherwise false.public boolean equals(Object other)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||