Class CleanExpiredTrustedDevicesUseCase
java.lang.Object
com.irurueta.authserver.authorization.application.mfa.CleanExpiredTrustedDevicesUseCase
Use case that deletes the trusted devices that have expired, since they can never be used again.
-
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
-
CleanExpiredTrustedDevicesUseCase
public CleanExpiredTrustedDevicesUseCase()
-
-
Method Details
-
execute
public int execute()Deletes the expired devices.- Returns:
- the number of deleted devices.
-