Class LoginDto
java.lang.Object
me.josephsf.jobportaljosephsfeir.dto.LoginDto
Data Transfer Object for user login credentials.
This class encapsulates the information required for authenticating a user in the Job Portal system. It captures the username and password provided during the login process and includes validation constraints to ensure required fields are not empty.
The validation constraints ensure that both username and password are provided before the login attempt is processed by the authentication system.
- Since:
- 2025-05-14
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the password.Gets the username.voidsetPassword(String password) Sets the password.voidsetUsername(String username) Sets the username.
-
Constructor Details
-
LoginDto
public LoginDto()Default constructor for deserialization. -
LoginDto
Constructs a new LoginDto with username and password.- Parameters:
username- The username for authenticationpassword- The password for authentication
-
-
Method Details
-
getUsername
Gets the username.- Returns:
- The username
-
setUsername
Sets the username.- Parameters:
username- The username to set
-
getPassword
Gets the password.- Returns:
- The password
-
setPassword
Sets the password.- Parameters:
password- The password to set
-