- java.lang.Object
-
- services.AuthService
-
- services.AuthStaffService
-
- All Implemented Interfaces:
IAuthService
public class AuthStaffService extends AuthService
AuthStaffService
extendsAuthService
and provides authentication functions for Staff.
-
-
Constructor Summary
Constructors Constructor Description AuthStaffService()
Construct an instance ofAuthStaffService
-
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 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
-
AuthStaffService
public AuthStaffService()
Construct an instance ofAuthStaffService
-
-
Method Detail
-
login
public boolean login(java.lang.String userID, java.lang.String password)
Description copied from interface:IAuthService
Logs in a user with userID and password (for student and staff)- Specified by:
login
in interfaceIAuthService
- Specified by:
login
in classAuthService
- Parameters:
userID
- user's userIDpassword
- user's password- Returns:
True
if the user is authenticated successfully,False
otherwise
-
-