Class IsClientMfaRequiredUseCase

java.lang.Object
com.irurueta.authserver.authorization.application.mfa.IsClientMfaRequiredUseCase

@Service @Transactional(readOnly=true) public class IsClientMfaRequiredUseCase extends Object
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 Details

  • Constructor Details

    • IsClientMfaRequiredUseCase

      public IsClientMfaRequiredUseCase()
  • Method Details

    • execute

      public boolean execute(String clientId)
      Tells whether a client requires a second factor.
      Parameters:
      clientId - public identifier of the client, or null when the request names none.
      Returns:
      true when the client is registered and requires it; false otherwise.