Class LoginDto

java.lang.Object
me.josephsf.jobportaljosephsfeir.dto.LoginDto

public class LoginDto extends Object
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 Details

    • LoginDto

      public LoginDto()
      Default constructor for deserialization.
    • LoginDto

      public LoginDto(String username, String password)
      Constructs a new LoginDto with username and password.
      Parameters:
      username - The username for authentication
      password - The password for authentication
  • Method Details

    • getUsername

      public String getUsername()
      Gets the username.
      Returns:
      The username
    • setUsername

      public void setUsername(String username)
      Sets the username.
      Parameters:
      username - The username to set
    • getPassword

      public String getPassword()
      Gets the password.
      Returns:
      The password
    • setPassword

      public void setPassword(String password)
      Sets the password.
      Parameters:
      password - The password to set