Package database.logic.user
Class DBUserManager
java.lang.Object
database.logic.user.DBUserManager
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddUserToDatabase
(CallerBack callerBack, RegistrationData data) boolean
checkExistence
(String login) void
close()
getUserFromDatabase
(AuthenticationData authData)
-
Field Details
-
MIN_PASSWORD_LENGTH
public static final int MIN_PASSWORD_LENGTH- See Also:
-
-
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
-
checkExistence
- Throws:
SQLException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-