- java.lang.Object
-
- services.AuthService
-
- services.AuthStudentService
-
- All Implemented Interfaces:
IAuthService
public class AuthStudentService extends AuthService
TheAuthStudentService
class extendsAuthService
and provides the login functionality for students.
-
-
Constructor Summary
Constructors Constructor Description AuthStudentService()
Constructs an instance of theAuthStudentService
class.
-
Method Summary
All Methods Instance Methods Concrete 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.-
Methods inherited from class services.AuthService
authenticate, logout
-
-
-
-
Constructor Detail
-
AuthStudentService
public AuthStudentService()
Constructs an instance of theAuthStudentService
class.
-
-
Method Detail
-
login
public boolean login(java.lang.String userID, java.lang.String password)
Description copied from interface:IAuthService
Logs in a user with the specified user ID and password.- Specified by:
login
in interfaceIAuthService
- Specified by:
login
in classAuthService
- Parameters:
userID
- the ID of the userpassword
- the user's password- Returns:
- true if the login was successful, false otherwise
-
-