@Override
    public boolean shouldMultifactorAuthenticationProviderExecuteInternal(final Authentication authentication,
                                                                          final RegisteredService registeredService,
                                                                          final MultifactorAuthenticationProvider provider,
                                                                          final HttpServletRequest request) {
        return registeredService == null
               || registeredService.getMultifactorAuthenticationPolicy() == null
               || !registeredService.getMultifactorAuthenticationPolicy().isBypassEnabled();
    }
Multifactor Bypass Provider based on Service Multifactor Policy.

@author Travis Schmidt
@since 6.0
core/cas-server-core-authentication-mfa-api/src/main/java/org/apereo/cas/authentication/bypass/RegisteredServiceMultifactorAuthenticationProviderBypassEvaluator.java