userManager
Interface UserManagerInterface
- All Known Implementing Classes:
- UserManager
public interface UserManagerInterface
Method Summary |
boolean |
authenticate(String username,
String password)
This method will verify that a given username and password matches
a user credentials to login into the system. |
void |
logout(String username)
This method will logout the user from the system by removing it from
active users table and marks user status field as 0 for inactive. |
active
static final ActiveInterface active
dbManager
static final DBManagerInterface dbManager
authenticate
static final AuthenticateInterface authenticate
authenticate
boolean authenticate(String username,
String password)
- This method will verify that a given username and password matches
a user credentials to login into the system. If a match is found
it returns true, else it returns false.
If it returns true, the method will login the user.
- Parameters:
String
- userName username value to be authenticated.String
- password password value to be authenticated.
- Returns:
- Boolean Authentication result.
logout
void logout(String username)
- This method will logout the user from the system by removing it from
active users table and marks user status field as 0 for inactive.