java.lang.Object
logic.User
Represents a user entity and provides methods to interact with user credentials.
Available methods:
-
Constructor Summary
ConstructorsConstructorDescriptionUser
(String username, UserCredentialsDataService userCredentialsDataService) Constructs a User object with the specified username and user credentials data service. -
Method Summary
Modifier and TypeMethodDescriptionboolean
checkPassword
(String password) Checks if the provided password matches the password associated with the user's username.
-
Constructor Details
-
User
Constructs a User object with the specified username and user credentials data service.- Parameters:
username
- the username of the useruserCredentialsDataService
- the service for user credentials data
-
-
Method Details
-
checkPassword
Checks if the provided password matches the password associated with the user's username.- Parameters:
password
- the password to be checked- Returns:
- true if the provided password matches the user's password, otherwise false
- Throws:
SystemLoginException
- if an error occurs while retrieving user credentials or if the provided username/password is incorrect
-