Package scheduler.Dao
Class loginAuthentication
- java.lang.Object
-
- scheduler.Dao.loginAuthentication
-
public abstract class loginAuthentication extends java.lang.Object
Class that manages login and authentication, on the data persistence layer.
-
-
Constructor Summary
Constructors Constructor Description loginAuthentication()
-
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.
-
-
-
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 loginpassword
- 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
-
-