Class IsClientMfaRequiredUseCase
java.lang.Object
com.irurueta.authserver.authorization.application.mfa.IsClientMfaRequiredUseCase
Use case that tells whether a client makes multi-factor authentication mandatory for every user signing in through
it (
ClientRegistration.mfaRequired()). How the flag is stored is the business of the client port's adapter
alone.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ClientRegistrationRepositoryPort that stores the clients. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
clientRegistrationRepository
Port that stores the clients.
-
-
Constructor Details
-
IsClientMfaRequiredUseCase
public IsClientMfaRequiredUseCase()
-
-
Method Details
-
execute
Tells whether a client requires a second factor.- Parameters:
clientId- public identifier of the client, ornullwhen the request names none.- Returns:
truewhen the client is registered and requires it;falseotherwise.
-