Search in sources :

Example 1 with ArtifactResolutionProfileImpl

use of org.springframework.security.saml.websso.ArtifactResolutionProfileImpl in project hub-alert by blackducksoftware.

the class AuthenticationHandler method artifactBinding.

@Bean
public HTTPArtifactBinding artifactBinding(ParserPool parserPool, VelocityEngine velocityEngine) {
    ArtifactResolutionProfileImpl profileImpl = new ArtifactResolutionProfileImpl(new HttpClient(new MultiThreadedHttpConnectionManager()));
    profileImpl.setProcessor(new SAMLProcessorImpl(soapBinding()));
    return new HTTPArtifactBinding(parserPool, velocityEngine, profileImpl);
}
Also used : SAMLProcessorImpl(org.springframework.security.saml.processor.SAMLProcessorImpl) HTTPArtifactBinding(org.springframework.security.saml.processor.HTTPArtifactBinding) HttpClient(org.apache.commons.httpclient.HttpClient) MultiThreadedHttpConnectionManager(org.apache.commons.httpclient.MultiThreadedHttpConnectionManager) ArtifactResolutionProfileImpl(org.springframework.security.saml.websso.ArtifactResolutionProfileImpl) Bean(org.springframework.context.annotation.Bean)

Aggregations

HttpClient (org.apache.commons.httpclient.HttpClient)1 MultiThreadedHttpConnectionManager (org.apache.commons.httpclient.MultiThreadedHttpConnectionManager)1 Bean (org.springframework.context.annotation.Bean)1 HTTPArtifactBinding (org.springframework.security.saml.processor.HTTPArtifactBinding)1 SAMLProcessorImpl (org.springframework.security.saml.processor.SAMLProcessorImpl)1 ArtifactResolutionProfileImpl (org.springframework.security.saml.websso.ArtifactResolutionProfileImpl)1