- java.lang.Object
-
- services.AuthService
-
- services.AuthStudentService
-
- All Implemented Interfaces:
IAuthService
- Direct Known Subclasses:
AuthCommitteeService
public class AuthStudentService extends AuthService
AuthStudentServiceextendsAuthServiceand provides authentication functions for Students.
-
-
Constructor Summary
Constructors Constructor Description AuthStudentService()Construct an instance ofAuthStudentService
-
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 userID and password (for student and staff)-
Methods inherited from class services.AuthService
authenticate, logout
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface interfaces.IAuthService
login
-
-
-
-
Constructor Detail
-
AuthStudentService
public AuthStudentService()
Construct an instance ofAuthStudentService
-
-
Method Detail
-
login
public boolean login(java.lang.String userID, java.lang.String password)Description copied from interface:IAuthServiceLogs in a user with userID and password (for student and staff)- Specified by:
loginin interfaceIAuthService- Specified by:
loginin classAuthService- Parameters:
userID- user's userIDpassword- user's password- Returns:
Trueif the user is authenticated successfully,Falseotherwise
-
-