Class ListTrustedDevicesUseCase
java.lang.Object
com.irurueta.authserver.authorization.application.mfa.ListTrustedDevicesUseCase
Use case that lists the trusted devices of a user that have not expired.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ClockSource of the current time.private final TrustedDeviceRepositoryPort that stores the trusted devices. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
trustedDeviceRepository
Port that stores the trusted devices. -
clock
Source of the current time.
-
-
Constructor Details
-
ListTrustedDevicesUseCase
public ListTrustedDevicesUseCase()
-
-
Method Details
-
execute
Lists the devices.- Parameters:
userId- identifier of the user.- Returns:
- the devices, never
null.
-