@Override
    public AuthenticationContextValidationResult validateAuthenticationContext(final Assertion assertion,
                                                                               final HttpServletRequest request,
                                                                               final HttpServletResponse response) throws Throwable {
        LOGGER.trace("Locating the primary authentication associated with this service request [{}]", assertion.getService());
        val registeredService = servicesManager.findServiceBy(assertion.getService());
        val authentication = assertion.getPrimaryAuthentication();
        return validateAuthenticationContext(request, response, registeredService, authentication, assertion.getService());
    }
This is {@link DefaultRequestedAuthenticationContextValidator}.

@author Misagh Moayyed
@since 6.0.0
core/cas-server-core-authentication-mfa-api/src/main/java/org/apereo/cas/authentication/DefaultRequestedAuthenticationContextValidator.java