-
- All Known Implementing Classes:
AuthFYPCoordinatorService
,AuthService
,AuthStudentService
,AuthSupervisorService
public interface IAuthService
TheIAuthService
interface 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 boolean
login(java.lang.String userID, java.lang.String password)
Logs in a user with the specified user ID and password.boolean
logout()
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
-
-