Search in sources :

Example 1 with SAMLProcessorImpl

use of org.springframework.security.saml.processor.SAMLProcessorImpl 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)

Example 2 with SAMLProcessorImpl

use of org.springframework.security.saml.processor.SAMLProcessorImpl in project cloud-pipeline by epam.

the class SAMLSecurityConfiguration method artifactResolutionProfile.

// Bindings
private ArtifactResolutionProfile artifactResolutionProfile() {
    final ArtifactResolutionProfileImpl artifactResolutionProfile = new ArtifactResolutionProfileImpl(httpClient());
    artifactResolutionProfile.setProcessor(new SAMLProcessorImpl(soapBinding()));
    return artifactResolutionProfile;
}
Also used : SAMLProcessorImpl(org.springframework.security.saml.processor.SAMLProcessorImpl) ArtifactResolutionProfileImpl(org.springframework.security.saml.websso.ArtifactResolutionProfileImpl)

Example 3 with SAMLProcessorImpl

use of org.springframework.security.saml.processor.SAMLProcessorImpl in project asquare by cognizone.

the class SamlSecurityAdapter method artifactResolutionProfile.

// Bindings
private ArtifactResolutionProfile artifactResolutionProfile() {
    final ArtifactResolutionProfileImpl artifactResolutionProfile = new ArtifactResolutionProfileImpl(httpClient());
    artifactResolutionProfile.setProcessor(new SAMLProcessorImpl(soapBinding()));
    return artifactResolutionProfile;
}
Also used : SAMLProcessorImpl(org.springframework.security.saml.processor.SAMLProcessorImpl) ArtifactResolutionProfileImpl(org.springframework.security.saml.websso.ArtifactResolutionProfileImpl)

Example 4 with SAMLProcessorImpl

use of org.springframework.security.saml.processor.SAMLProcessorImpl in project MobileAccessGateway by i4mi.

the class SamlIDPIntegration method artifactResolutionProfile.

// Bindings
private ArtifactResolutionProfile artifactResolutionProfile() throws MetadataProviderException {
    final ArtifactResolutionProfileImpl artifactResolutionProfile = new ArtifactResolutionProfileImpl(httpClient());
    artifactResolutionProfile.setProcessor(new SAMLProcessorImpl(soapBinding()));
    MetadataManager metadataManager = metadata();
    metadataManager.refreshMetadata();
    artifactResolutionProfile.setMetadata(metadataManager);
    return artifactResolutionProfile;
}
Also used : SAMLProcessorImpl(org.springframework.security.saml.processor.SAMLProcessorImpl) CachingMetadataManager(org.springframework.security.saml.metadata.CachingMetadataManager) MetadataManager(org.springframework.security.saml.metadata.MetadataManager) ArtifactResolutionProfileImpl(org.springframework.security.saml.websso.ArtifactResolutionProfileImpl)

Example 5 with SAMLProcessorImpl

use of org.springframework.security.saml.processor.SAMLProcessorImpl 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

SAMLProcessorImpl (org.springframework.security.saml.processor.SAMLProcessorImpl)7 ArtifactResolutionProfileImpl (org.springframework.security.saml.websso.ArtifactResolutionProfileImpl)7 Bean (org.springframework.context.annotation.Bean)3 HTTPArtifactBinding (org.springframework.security.saml.processor.HTTPArtifactBinding)3 HttpClient (org.apache.commons.httpclient.HttpClient)2 MultiThreadedHttpConnectionManager (org.apache.commons.httpclient.MultiThreadedHttpConnectionManager)2 ArrayList (java.util.ArrayList)1 Conditional (org.springframework.context.annotation.Conditional)1 CachingMetadataManager (org.springframework.security.saml.metadata.CachingMetadataManager)1 MetadataManager (org.springframework.security.saml.metadata.MetadataManager)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