java.lang.Object
com.mirna.hospitalmanagementapi.application.services.auth.AuthServiceImpl
All Implemented Interfaces:
AuthService

@Service public class AuthServiceImpl extends Object implements AuthService
This class is an implementation of the AuthService interface. This class provides methods to perform operations on users registration and authentication
Version:
1.0
Author:
Mirna Gama
  • Constructor Details

    • AuthServiceImpl

      public AuthServiceImpl()
  • Method Details

    • login

      public org.springframework.security.core.Authentication login(UserDTO userDTO)
      Performs the user login
      Specified by:
      login in interface AuthService
      Parameters:
      userDTO - Data transfer object containing user credentials for authentication operations
      Returns:
      A fully authentication object including the credentials
    • register

      public User register(UserDTO userDTO)
      Performs the user registration
      Specified by:
      register in interface AuthService
      Parameters:
      userDTO - Data transfer object containing user credentials for authentication operations
      Returns:
      A user object including the credentials