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 Type
    Method
    Description
    Must return the user Name by his username and password.
    boolean
    registerNewUser(String part, String part1, String part2)
    Must determine the registration of a new user.
    void
    Must determine the connection to the Database.
    void
    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

      String getNickByLoginPass(String login, String pass)
      Must return the user Name by his username and password.
      Parameters:
      login - User login.
      pass - The user's password.
      Returns:
      Username.
    • registerNewUser

      boolean registerNewUser(String part, String part1, String part2)
      Must determine the registration of a new user.
      Parameters:
      part - Username.
      part1 - User login.
      part2 - The user's password.
      Returns:
      true upon successful registration.