Class FindUserAccountUseCase
java.lang.Object
com.irurueta.authserver.authorization.application.password.FindUserAccountUseCase
Use case that looks a user account up by username. A Spring service, so component scanning registers it and
injects its port.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final UserAccountRepositoryPort that provides the user accounts. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFinds the account of a user.
-
Field Details
-
userAccountRepository
Port that provides the user accounts.
-
-
Constructor Details
-
FindUserAccountUseCase
public FindUserAccountUseCase()
-
-
Method Details
-
execute
Finds the account of a user.- Parameters:
username- name the user signs in with.- Returns:
- the account, or an empty optional when no account has that username.
-