-
- All Known Implementing Classes:
AuthCommitteeService,AuthService,AuthStaffService,AuthStudentService
public interface IAuthServiceTheIAuthServiceinterface defines the methods for managing authentication services i.e. login and logout.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidlogin(java.lang.String userID)Logs in a user with userIDdefault booleanlogin(java.lang.String userID, java.lang.String password)Logs in a user with userID and password (for student and staff)booleanlogout()Logs out the currently logged in user.
-
-
-
Method Detail
-
login
default boolean login(java.lang.String userID, java.lang.String password)Logs in a user with userID and password (for student and staff)- Parameters:
userID- user's userIDpassword- user's password- Returns:
Trueif the user is authenticated successfully,Falseotherwise
-
login
default void login(java.lang.String userID)
Logs in a user with userID- Parameters:
userID- Identifier of the user
-
logout
boolean logout()
Logs out the currently logged in user.- Returns:
Trueif successfully log out,Falseotherwise.
-
-