Class LoginInformation
java.lang.Object
passport.domain.contexts.user.forms.LoginInformation
Represents the login information for a user, including email and password.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the email for the login information.Sets the password for the login information.submit()
Submits the login information and returns a Login object.
-
Constructor Details
-
LoginInformation
public LoginInformation()
-
-
Method Details
-
email
Sets the email for the login information.- Parameters:
email
- the user's email- Returns:
- the updated LoginInformation object
-
password
Sets the password for the login information.- Parameters:
password
- the user's password- Returns:
- the updated LoginInformation object
-
submit
Submits the login information and returns a Login object.- Returns:
- a new Login object with the provided email and password
- Throws:
NullPointerException
- if the email or password is null
-