@Bean
        @ConditionalOnMissingBean(name = "restHttpRequestCredentialFactory")
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        public RestHttpRequestCredentialFactory restHttpRequestCredentialFactory(
            final List<RestHttpRequestCredentialFactoryConfigurer> configurers) {

            LOGGER.trace("building REST credential factory from [{}]", configurers);
            val factory = new ChainingRestHttpRequestCredentialFactory();
            AnnotationAwareOrderComparator.sortIfNecessary(configurers);

            configurers.forEach(c -> {
                LOGGER.trace("Configuring credential factory: [{}]", c);
                c.configureCredentialFactory(factory);
            });
            return factory;
        }
This is {@link CasCoreRestAutoConfiguration}.

@author Misagh Moayyed
@since 6.4.0
core/cas-server-core-rest/src/main/java/org/apereo/cas/config/CasCoreRestAutoConfiguration.java