Class ResetSecondFactorFailuresUseCase
java.lang.Object
com.irurueta.authserver.authorization.application.mfa.ResetSecondFactorFailuresUseCase
Use case that clears the failed second-factor attempts of a user, after a successful verification.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SecondFactorAttemptRepositoryPort that stores the failed-attempt counters. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
secondFactorAttemptRepository
Port that stores the failed-attempt counters.
-
-
Constructor Details
-
ResetSecondFactorFailuresUseCase
public ResetSecondFactorFailuresUseCase()
-
-
Method Details
-
execute
Clears the counter and any lockout of a user.- Parameters:
userId- identifier of the user.
-