Class HasConfirmedSecondFactorUseCase
java.lang.Object
com.irurueta.authserver.authorization.application.mfa.HasConfirmedSecondFactorUseCase
Use case that tells whether a user has confirmed any second factor, asking every
SecondFactorEnrolmentQuery
bean.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<SecondFactorEnrolmentQuery> One query per second factor. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
enrolmentQueries
One query per second factor.
-
-
Constructor Details
-
HasConfirmedSecondFactorUseCase
public HasConfirmedSecondFactorUseCase()
-
-
Method Details
-
execute
Tells whether a user has confirmed a second factor.- Parameters:
userId- identifier of the user.- Returns:
truewhen at least one second factor is confirmed.
-