java.lang.Object
com.flexstor.common.gui.login.LoginModel
- public class LoginModel
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
loginData
private LoginUserData loginData
bAutoLogin
private boolean bAutoLogin
bAlowChangePW
private boolean bAlowChangePW
USERID_LENGTH
public static final int USERID_LENGTH
- See Also:
- Constant Field Values
PASSWORD_LENGTH
public static final int PASSWORD_LENGTH
- See Also:
- Constant Field Values
STATE_SHOW_LOGIN_GUI
public static final int STATE_SHOW_LOGIN_GUI
- See Also:
- Constant Field Values
STATE_READY_TO_LOGIN
public static final int STATE_READY_TO_LOGIN
- See Also:
- Constant Field Values
STATE_LOGGED_IN
public static final int STATE_LOGGED_IN
- See Also:
- Constant Field Values
STATE_LOG_IN_FAILED
public static final int STATE_LOG_IN_FAILED
- See Also:
- Constant Field Values
STATE_LOGIN_CANCELED
public static final int STATE_LOGIN_CANCELED
- See Also:
- Constant Field Values
STATE_SHOW_CHANGE_PW_GUI
public static final int STATE_SHOW_CHANGE_PW_GUI
- See Also:
- Constant Field Values
STATE_READY_TO_CHANGE_PW
public static final int STATE_READY_TO_CHANGE_PW
- See Also:
- Constant Field Values
STATE_PASSWORD_CHANGED
public static final int STATE_PASSWORD_CHANGED
- See Also:
- Constant Field Values
STATE_CHANGE_PW_FAILED
public static final int STATE_CHANGE_PW_FAILED
- See Also:
- Constant Field Values
STATE_CHANGE_PW_CANCELED
public static final int STATE_CHANGE_PW_CANCELED
- See Also:
- Constant Field Values
LoginModel
public LoginModel(boolean bAutoLogin,
boolean bAlowChangePW,
java.lang.String sUserID,
java.lang.String sPassword)
getUserID
public java.lang.String getUserID()
getPassword
public java.lang.String getPassword()
attemptLogin
public boolean attemptLogin()
isValidPassword
public static boolean isValidPassword(java.lang.String strPassword)
- For client/Admin log-in.
Rules :
1. It should not be null.
2. It should not be an emptry string.
3. It should not have leading, traling spaces.
4. It should not have any spaces in between.
5. Is should have digits and characters only. No special characters.
performLogin
private int performLogin()
performChangePassword
private int performChangePassword()