@Bean
        @ConditionalOnMissingBean(name = "x509RestRequestHeader")
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        public RestHttpRequestCredentialFactory x509RestRequestHeader(
            final ConfigurableApplicationContext applicationContext,
            @Qualifier("x509CertificateExtractor")
            final X509CertificateExtractor x509CertificateExtractor) {
            return BeanSupplier.of(RestHttpRequestCredentialFactory.class)
                .when(BeanCondition.on("cas.rest.x509.header-auth").isTrue().given(applicationContext.getEnvironment()))
                .supply(() -> new X509RestHttpRequestHeaderCredentialFactory(x509CertificateExtractor))
                .otherwiseProxy()
                .get();
        }
X509 Rest configuration class.

@author Dmytro Fedonin
@since 5.1.0
support/cas-server-support-rest-x509/src/main/java/org/apereo/cas/config/CasX509RestAutoConfiguration.java