Package databaseLogic.databaseUserLogic
Class DBUserManager
java.lang.Object
databaseLogic.databaseUserLogic.DBUserManager
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddUserToDatabase
(CallerBack callerBack, RegistrationData data) void
close()
getUserFromDatabase
(AuthenticationData authData)
-
Constructor Details
-
DBUserManager
- Throws:
IOException
SQLException
-
-
Method Details
-
addUserToDatabase
public AuthorizedUserData addUserToDatabase(CallerBack callerBack, RegistrationData data) throws SQLException, RegistrationFailedException -
getUserFromDatabase
public AuthorizedUserData getUserFromDatabase(AuthenticationData authData) throws AuthorizeException, SQLException - Throws:
AuthorizeException
SQLException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-