Class AuthServiceImpl
java.lang.Object
com.mirna.hospitalmanagementapi.application.services.auth.AuthServiceImpl
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
AuthServiceImpl
public AuthServiceImpl()
-
-
Method Details
-
login
Performs the user login- Specified by:
loginin interfaceAuthService- Parameters:
userDTO- Data transfer object containing user credentials for authentication operations- Returns:
- A fully authentication object including the credentials
-
register
Performs the user registration- Specified by:
registerin interfaceAuthService- Parameters:
userDTO- Data transfer object containing user credentials for authentication operations- Returns:
- A user object including the credentials
-