|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.bioquery.bqutils.BQUser
This class models the user and simply stores the username and password.
| Field Summary | |
static int |
MIN_PASSWORD_LENGTH
The minimum length for a valid password. |
static int |
MIN_USERNAME_LENGTH
The minimum length for a valid username. |
| Constructor Summary | |
BQUser(java.lang.String username,
char[] password)
Constructor accepts and sets the username and password for this account. |
|
| Method Summary | |
boolean |
checkPassword(char[] pass)
Confirms whether the given password matches the password for this user. |
boolean |
checkUser(java.lang.String username,
char[] pass)
Checks whether the username and password given match the username and password of this user object. |
char[] |
getPassword()
Returns the password for this user. |
java.lang.String |
getUsername()
Returns the username for this user. |
boolean |
isComplete()
Checks whether this user object has a completed username and password of at least the minimum length. |
void |
setPassword(char[] password)
Set the password. |
void |
setUsername(java.lang.String username)
Set the username. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int MIN_USERNAME_LENGTH
public static final int MIN_PASSWORD_LENGTH
| Constructor Detail |
public BQUser(java.lang.String username,
char[] password)
username - the username for this account.password - the password for this account.| Method Detail |
public java.lang.String getUsername()
public void setUsername(java.lang.String username)
username - the username for this user.public void setPassword(char[] password)
password - the password for this user.public char[] getPassword()
public boolean checkPassword(char[] pass)
pass - the password for this account.
public boolean checkUser(java.lang.String username,
char[] pass)
username - the username for this account.password - the password for this account.public boolean isComplete()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||