Search in sources :

Example 1 with HTTPPAOS11Binding

use of org.springframework.security.saml.processor.HTTPPAOS11Binding in project Insights by CognizantOneDevOps.

the class InsightsSecurityConfigurationAdapterSAML method processor.

@Bean
@Conditional(InsightsSAMLBeanInitializationCondition.class)
public SAMLProcessorImpl processor() {
    Collection<SAMLBinding> bindings = new ArrayList<>();
    ArtifactResolutionProfileImpl artifactResolutionProfile = new ArtifactResolutionProfileImpl(httpClient());
    HTTPSOAP11Binding soapBinding = new HTTPSOAP11Binding(parserPool());
    artifactResolutionProfile.setProcessor(new SAMLProcessorImpl(soapBinding));
    bindings.add(httpRedirectDeflateBinding());
    bindings.add(httpPostBinding());
    bindings.add(new HTTPArtifactBinding(parserPool(), velocityEngine(), artifactResolutionProfile));
    bindings.add(new HTTPSOAP11Binding(parserPool()));
    bindings.add(new HTTPPAOS11Binding(parserPool()));
    return new SAMLProcessorImpl(bindings);
}
Also used : HTTPPAOS11Binding(org.springframework.security.saml.processor.HTTPPAOS11Binding) SAMLProcessorImpl(org.springframework.security.saml.processor.SAMLProcessorImpl) HTTPArtifactBinding(org.springframework.security.saml.processor.HTTPArtifactBinding) SAMLBinding(org.springframework.security.saml.processor.SAMLBinding) ArrayList(java.util.ArrayList) HTTPSOAP11Binding(org.springframework.security.saml.processor.HTTPSOAP11Binding) ArtifactResolutionProfileImpl(org.springframework.security.saml.websso.ArtifactResolutionProfileImpl) Conditional(org.springframework.context.annotation.Conditional) Bean(org.springframework.context.annotation.Bean)

Aggregations

ArrayList (java.util.ArrayList)1 Bean (org.springframework.context.annotation.Bean)1 Conditional (org.springframework.context.annotation.Conditional)1 HTTPArtifactBinding (org.springframework.security.saml.processor.HTTPArtifactBinding)1 HTTPPAOS11Binding (org.springframework.security.saml.processor.HTTPPAOS11Binding)1 HTTPSOAP11Binding (org.springframework.security.saml.processor.HTTPSOAP11Binding)1 SAMLBinding (org.springframework.security.saml.processor.SAMLBinding)1 SAMLProcessorImpl (org.springframework.security.saml.processor.SAMLProcessorImpl)1 ArtifactResolutionProfileImpl (org.springframework.security.saml.websso.ArtifactResolutionProfileImpl)1