-
- All Known Implementing Classes:
AuthCommitteeService
,AuthService
,AuthStaffService
,AuthStudentService
public interface IAuthService
TheIAuthService
interface 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 void
login(java.lang.String userID)
Logs in a user with userIDdefault boolean
login(java.lang.String userID, java.lang.String password)
Logs in a user with userID and password (for student and staff)boolean
logout()
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:
True
if the user is authenticated successfully,False
otherwise
-
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:
True
if successfully log out,False
otherwise.
-
-