|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectuserManager.authenticate.Authenticate
public class Authenticate
The Authenticate class provides functions for user to login and logout of the system. After authenticating the user, class will add user into the Active table where users remain until the logout.
Field Summary | |
---|---|
ActiveInterface |
active
|
Builder |
build
|
UserInterface |
user
|
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. |
static Authenticate |
getInstance()
This method will return the Authenticate instance if one already exists. |
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public ActiveInterface active
public UserInterface user
public Builder build
Method Detail |
---|
public static Authenticate getInstance()
public boolean authenticate(String username, String password)
authenticate
in interface AuthenticateInterface
String
- userName username value to be authenticated.String
- password password value to be authenticated.
public void logout(String username)
logout
in interface AuthenticateInterface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |