Package com.cloud.serverpak.interfaces
Interface AuthService
- All Known Implementing Classes:
AuthServiceBD
public interface AuthService
An interface designed to define the basic methods of working
with the database.
-
Method Summary
Modifier and TypeMethodDescriptiongetNickByLoginPass(String login, String pass) Must return the user Name by his username and password.booleanregisterNewUser(String part, String part1, String part2) Must determine the registration of a new user.voidstart()Must determine the connection to the Database.voidstop()Must determine the closure of the Database connection.
-
Method Details
-
start
void start()Must determine the connection to the Database. -
stop
void stop()Must determine the closure of the Database connection. -
getNickByLoginPass
Must return the user Name by his username and password.- Parameters:
login- User login.pass- The user's password.- Returns:
- Username.
-
registerNewUser
Must determine the registration of a new user.- Parameters:
part- Username.part1- User login.part2- The user's password.- Returns:
- true upon successful registration.
-