@Bean
        @ConditionalOnMissingBean(name = "legacyValidateController")
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        public LegacyValidateController legacyValidateController(
            @Qualifier("casValidationConfigurationContext")
            final ServiceValidateConfigurationContext casValidationConfigurationContext,
            @Qualifier("proxy10Handler")
            final ProxyHandler proxy10Handler,
            @Qualifier("legacyValidateControllerValidationSpecification")
            final CasProtocolValidationSpecification legacyValidateControllerValidationSpecification) {
            return new LegacyValidateController(casValidationConfigurationContext
                .withValidationSpecifications(CollectionUtils.wrapSet(legacyValidateControllerValidationSpecification))
                .withProxyHandler(proxy10Handler));
        }
This is {@link CasValidationAutoConfiguration}.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-validation/src/main/java/org/apereo/cas/config/CasValidationAutoConfiguration.java