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