Class FindUserPhoneUseCase

java.lang.Object
com.irurueta.authserver.authorization.application.sms.FindUserPhoneUseCase

@Service @Transactional(readOnly=true) public class FindUserPhoneUseCase extends Object
Finds the verified phone of a user, which the account API shows masked.
  • Field Details

    • userPhoneRepository

      private final UserPhoneRepository userPhoneRepository
      Port that reads the verified phones.
  • Constructor Details

    • FindUserPhoneUseCase

      public FindUserPhoneUseCase()
  • Method Details

    • execute

      public Optional<UserPhone> execute(UUID userId)
      Finds the verified phone of a user.
      Parameters:
      userId - identifier of the user.
      Returns:
      the phone, or empty when the user has none.