package org.apereo.cas.web.extractcert;

import org.apereo.cas.configuration.CasConfigurationProperties;

import lombok.val;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * This class configures the {@link X509CertificateExtractor} for the x509 webflow and x509 rest
 * authentication modules.
 *
 * @author Curtis W Ruck
 * @since 5.3.3
 */
@Configuration("x509CertificateExtractorConfiguration")
@EnableConfigurationProperties(CasConfigurationProperties.class)
public class X509CertificateExtractorConfiguration {

    @Autowired
    private CasConfigurationProperties casProperties;

    @ConditionalOnMissingBean(name = "x509ExtractSSLCertificate")
    @Bean
    public X509CertificateExtractor x509ExtractSSLCertificate() {
        val sslHeaderName = casProperties.getAuthn().getX509().getSslHeaderName();
        return new RequestHeaderX509CertificateExtractor(sslHeaderName);
    }
}

@@ -919,34 +919,24 @@
 name = %22x509
-ExtractSSL
 Certificate%22
@@ -934,16 +934,25 @@
 tificate
+Extractor
 %22)%0A    @
@@ -1000,18 +1000,8 @@
 x509
-ExtractSSL
 Cert
@@ -1007,16 +1007,25 @@
 tificate
+Extractor
 () %7B%0A   

fix test case