-
- All Known Implementing Classes:
AuthFYPCoordinatorService,AuthService,AuthStudentService,AuthSupervisorService
public interface IAuthServiceTheIAuthServiceinterface defines a contract for managing authentication services, such as login and logout.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanlogin(java.lang.String userID, java.lang.String password)Logs in a user with the specified user ID and password.booleanlogout()Logs out the currently logged in user.
-
-
-
Method Detail
-
login
boolean login(java.lang.String userID, java.lang.String password)Logs in a user with the specified user ID and password.- Parameters:
userID- the ID of the userpassword- the user's password- Returns:
- true if the login was successful, false otherwise
-
logout
boolean logout()
Logs out the currently logged in user.- Returns:
- true if the logout was successful, false otherwise
-
-