@StampyLibrary(libraryName="stampy-examples") public class SystemLoginHandler extends java.lang.Object implements StampyLoginHandler
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BAD_USER
The Constant BAD_USER.
|
static java.lang.String |
GOOD_USER
The Constant GOOD_USER.
|
static java.lang.String |
SEE_THE_SYSTEM_ADMINISTRATOR
The Constant SEE_THE_SYSTEM_ADMINISTRATOR.
|
| Constructor and Description |
|---|
SystemLoginHandler() |
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxFailedLoginAttempts()
Gets the max failed login attempts.
|
void |
login(java.lang.String username,
java.lang.String password)
Implementations are to perform any required login functionality.
|
void |
setMaxFailedLoginAttempts(int maxFailedLoginAttempts)
Sets the max failed login attempts.
|
public static final java.lang.String SEE_THE_SYSTEM_ADMINISTRATOR
public static final java.lang.String GOOD_USER
public static final java.lang.String BAD_USER
public void login(java.lang.String username,
java.lang.String password)
throws NotLoggedInException,
TerminateSessionException
StampyLoginHandlerNotLoggedInException is to be thrown. If the session
is to be terminated a TerminateSessionException is to be thrown.login in interface StampyLoginHandlerusername - the usernamepassword - the passwordNotLoggedInException - the not logged in exceptionTerminateSessionException - the terminate session exceptionpublic int getMaxFailedLoginAttempts()
public void setMaxFailedLoginAttempts(int maxFailedLoginAttempts)
maxFailedLoginAttempts - the new max failed login attempts