org.springframework.security.saml.util.VelocityFactory Java Examples

The following examples show how to use org.springframework.security.saml.util.VelocityFactory. 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: SAMLConfig.java    From spring-boot-security-saml-samples with MIT License 6 votes vote down vote up
@Bean
public SAMLProcessorImpl processor() {
    HttpClient httpClient = new HttpClient(new MultiThreadedHttpConnectionManager());
    ArtifactResolutionProfileImpl artifactResolutionProfile = new ArtifactResolutionProfileImpl(httpClient);
    HTTPSOAP11Binding soapBinding = new HTTPSOAP11Binding(parserPool());
    artifactResolutionProfile.setProcessor(new SAMLProcessorImpl(soapBinding));

    VelocityEngine velocityEngine = VelocityFactory.getEngine();
    Collection<SAMLBinding> bindings = new ArrayList<>();
    bindings.add(new HTTPRedirectDeflateBinding(parserPool()));
    bindings.add(new HTTPPostBinding(parserPool(), velocityEngine));
    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 4 votes vote down vote up
@Bean
public VelocityEngine velocityEngine() {
    return VelocityFactory.getEngine();
}
 
Example #3
Source File: InsightsSecurityConfigurationAdapterSAML.java    From Insights with Apache License 2.0 4 votes vote down vote up
@Bean
@Conditional(InsightsSAMLBeanInitializationCondition.class)
public VelocityEngine velocityEngine() {

	return VelocityFactory.getEngine();
}
 
Example #4
Source File: SAMLProcessorConfigurer.java    From spring-boot-security-saml with MIT License 4 votes vote down vote up
private VelocityEngine getVelocityEngine() {
    if (velocityEngine == null) {
        velocityEngine = VelocityFactory.getEngine();
    }
    return velocityEngine;
}
 
Example #5
Source File: WebSecurityConfig.java    From spring-tsers-auth with Apache License 2.0 4 votes vote down vote up
@Bean
public VelocityEngine velocityEngine() {
    return VelocityFactory.getEngine();
}
 
Example #6
Source File: SAMLConfigurer.java    From spring-security-saml-dsl with MIT License 4 votes vote down vote up
private HTTPPostBinding httpPostBinding(ParserPool parserPool) {
	return new HTTPPostBinding(parserPool, VelocityFactory.getEngine());
}
 
Example #7
Source File: WebSecurityConfig.java    From spring-boot-security-saml-sample with Apache License 2.0 4 votes vote down vote up
@Bean
public VelocityEngine velocityEngine() {
    return VelocityFactory.getEngine();
}