Package services

Class AuthStudentService

    • 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 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AuthStudentService

        public AuthStudentService()
        Construct an instance of AuthStudentService
    • 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 interface IAuthService
        Specified by:
        login in class AuthService
        Parameters:
        userID - user's userID
        password - user's password
        Returns:
        True if the user is authenticated successfully, False otherwise