Package main.Utils

Class Authenticator

java.lang.Object
main.Utils.Authenticator

public class Authenticator extends Object
Provide methods to authenticate different user types The class does not have any public constructors and should be used as a static utility class.
Since:
2023-4-13
  • Constructor Details

    • Authenticator

      public Authenticator()
  • Method Details

    • authenticateStudent

      public static boolean authenticateStudent(String username, String password)
      Method to authenticate student
      Parameters:
      username - userID of student
      password - password of student
      Returns:
      whether the student passed authentication
    • authenticateStaff

      public static boolean authenticateStaff(String username, String password)
      Method to authenticate staff
      Parameters:
      username - userID of staff
      password - password of staff
      Returns:
      whether the staff passed authentication