org.springframework.security.saml.processor.SAMLBinding Java Examples

The following examples show how to use org.springframework.security.saml.processor.SAMLBinding. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: InsightsSecurityConfigurationAdapterSAML.java    From Insights with Apache License 2.0 6 votes vote down vote up
@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);
}
 
Example #2
Source File: AuthenticationHandler.java    From blackduck-alert with Apache License 2.0 5 votes vote down vote up
@Bean
public SAMLProcessorImpl processor() {
    Collection<SAMLBinding> bindings = new ArrayList<>();
    bindings.add(httpRedirectDeflateBinding());
    bindings.add(httpPostBinding());
    return new SAMLProcessorImpl(bindings);
}
 
Example #3
Source File: WebSecurityConfig.java    From spring-boot-security-saml-sample with Apache License 2.0 5 votes vote down vote up
@Bean
public SAMLProcessorImpl processor() {
	Collection<SAMLBinding> bindings = new ArrayList<SAMLBinding>();
	bindings.add(httpRedirectDeflateBinding());
	bindings.add(httpPostBinding());
	bindings.add(artifactBinding(parserPool(), velocityEngine()));
	bindings.add(httpSOAP11Binding());
	bindings.add(httpPAOS11Binding());
	return new SAMLProcessorImpl(bindings);
}
 
Example #4
Source File: SAMLConfigurer.java    From spring-security-saml-dsl with MIT License 4 votes vote down vote up
private SAMLProcessor samlProcessor() {
	Collection<SAMLBinding> bindings = new ArrayList<>();
	bindings.add(httpRedirectDeflateBinding(parserPool));
	bindings.add(httpPostBinding(parserPool));
	return new SAMLProcessorImpl(bindings);
}