Class FindUserPhoneUseCase
java.lang.Object
com.irurueta.authserver.authorization.application.sms.FindUserPhoneUseCase
Finds the verified phone of a user, which the account API shows masked.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final UserPhoneRepositoryPort that reads the verified phones. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
userPhoneRepository
Port that reads the verified phones.
-
-
Constructor Details
-
FindUserPhoneUseCase
public FindUserPhoneUseCase()
-
-
Method Details
-
execute
Finds the verified phone of a user.- Parameters:
userId- identifier of the user.- Returns:
- the phone, or empty when the user has none.
-