@RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        @Bean
        @ConditionalOnMissingBean(name = MultifactorAuthenticationContextValidator.BEAN_NAME)
        public MultifactorAuthenticationContextValidator authenticationContextValidator(
            final CasConfigurationProperties casProperties,
            final ConfigurableApplicationContext applicationContext) {
            val mfa = casProperties.getAuthn().getMfa();
            val contextAttribute = mfa.getCore().getAuthenticationContextAttribute();
            val authnAttributeName = mfa.getTrusted().getCore().getAuthenticationContextAttribute();
            return new DefaultMultifactorAuthenticationContextValidator(contextAttribute, authnAttributeName, applicationContext);
        }
This is {@link CasCoreMultifactorAuthenticationConfiguration}.

@author Travis Schmidt
@since 6.0.0
core/cas-server-core-authentication-mfa/src/main/java/org/apereo/cas/config/CasCoreMultifactorAuthenticationConfiguration.java