|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvooga.users.ui.Validator
public class Validator
Holds methods for checking whether or not a username or a password is valid. Edit this class to change validity rules.
Field Summary | |
---|---|
(package private) IVoogaGUI |
myGUI
|
Constructor Summary | |
---|---|
Validator(IVoogaGUI gui)
|
Method Summary | |
---|---|
boolean |
isPasswordValid(java.lang.String password,
java.lang.String passwordVerify)
Return true if password is valid (is equal to or greater than minimum password length, and password equals verify password entry), false if not. |
boolean |
isUsernameValid(java.lang.String username)
Return true if username is valid (not in the "restricted" list and not starting with a number), false if not. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
IVoogaGUI myGUI
Constructor Detail |
---|
public Validator(IVoogaGUI gui)
Method Detail |
---|
public boolean isUsernameValid(java.lang.String username)
username
- to check if valid
public boolean isPasswordValid(java.lang.String password, java.lang.String passwordVerify)
password
- to check if validpasswordVerify
- verify password entry, to check if equals password
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |