Package interfaces

Interface IAuthService

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default void login​(java.lang.String userID)
      Logs in a user with userID
      default boolean login​(java.lang.String userID, java.lang.String password)
      Logs in a user with userID and password (for student and staff)
      boolean logout()
      Logs out the currently logged in user.
    • Method Detail

      • login

        default boolean login​(java.lang.String userID,
                              java.lang.String password)
        Logs in a user with userID and password (for student and staff)
        Parameters:
        userID - user's userID
        password - user's password
        Returns:
        True if the user is authenticated successfully, False otherwise
      • login

        default void login​(java.lang.String userID)
        Logs in a user with userID
        Parameters:
        userID - Identifier of the user
      • logout

        boolean logout()
        Logs out the currently logged in user.
        Returns:
        True if successfully log out, False otherwise.