@Bean
        @ConditionalOnMissingBean(name = "serviceValidateController")
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        public ServiceValidateController serviceValidateController(
            @Qualifier("casValidationConfigurationContext")
            final ServiceValidateConfigurationContext casValidationConfigurationContext,
            @Qualifier("proxy20Handler")
            final ProxyHandler proxy20Handler,
            @Qualifier("serviceValidateControllerValidationSpecification")
            final CasProtocolValidationSpecification serviceValidateControllerValidationSpecification) {

            return new ServiceValidateController(casValidationConfigurationContext
                .withValidationSpecifications(CollectionUtils.wrapSet(serviceValidateControllerValidationSpecification))
                .withProxyHandler(proxy20Handler));
        }
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