private static SimpleHttpClient getHttpClient(final boolean redirectEnabled,
                                                      final CasSSLContext casSslContext,
                                                      final LayeredConnectionSocketFactory trustStoreSslSocketFactory,
                                                      final CasConfigurationProperties casProperties) {
            val factoryBean = buildHttpClientFactoryBean(casSslContext, trustStoreSslSocketFactory, casProperties);
            factoryBean.setRedirectsEnabled(redirectEnabled);
            factoryBean.setCircularRedirectsAllowed(redirectEnabled);
            return factoryBean.getObject();
        }
This is {@link CasCoreHttpConfiguration}.

@author Misagh Moayyed
@since 5.1.0
core/cas-server-core-web/src/main/java/org/apereo/cas/config/CasCoreHttpConfiguration.java