userManager
Interface AuthenticateInterface
- All Known Implementing Classes:
- Authenticate
public interface AuthenticateInterface
Method Summary |
boolean |
authenticate(String username,
String password)
This method will verify that a given username and password matches
a registered user in 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. |
authenticate
boolean authenticate(String username,
String password)
- This method will verify that a given username and password matches
a registered user in the system. If a match is found it returns true,
else, it returns false.
If it returns true, the method will construct a User object and adds
it to ActiveInterface table.
- 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.