Package scheduler.Dao

Class loginAuthentication


  • public abstract class loginAuthentication
    extends java.lang.Object
    Class that manages login and authentication, on the data persistence layer.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean authenticateUser​(java.lang.String userName, java.lang.String password)
      Determines if the name and password exist in the application database, and that they match.
      • Methods inherited from class java.lang.Object

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

      • loginAuthentication

        public loginAuthentication()
    • Method Detail

      • authenticateUser

        public static boolean authenticateUser​(java.lang.String userName,
                                               java.lang.String password)
                                        throws java.sql.SQLException
        Determines if the name and password exist in the application database, and that they match.
        Parameters:
        userName - is the userName used for login
        password - is the password that corresponds with the entered username.
        Returns:
        Returns true if the provided username and password match what exists in the database. Returns false if it does not.
        Throws:
        java.sql.SQLException