Class ListTrustedDevicesUseCase

java.lang.Object
com.irurueta.authserver.authorization.application.mfa.ListTrustedDevicesUseCase

@Service @Transactional(readOnly=true) public class ListTrustedDevicesUseCase extends Object
Use case that lists the trusted devices of a user that have not expired.
  • Field Details

    • trustedDeviceRepository

      private final TrustedDeviceRepository trustedDeviceRepository
      Port that stores the trusted devices.
    • clock

      private final Clock clock
      Source of the current time.
  • Constructor Details

    • ListTrustedDevicesUseCase

      public ListTrustedDevicesUseCase()
  • Method Details

    • execute

      public List<TrustedDevice> execute(UUID userId)
      Lists the devices.
      Parameters:
      userId - identifier of the user.
      Returns:
      the devices, never null.