private HTTPPostBinding httpPostBinding(ParserPool parserPool) { return new HTTPPostBinding(parserPool, VelocityFactory.getEngine()); }
/** * A HTTP POST binding to use. * * @return The post binding * @see HTTPPostBinding */ @Bean public HTTPPostBinding httpPostBinding() { return new HTTPPostBinding(parserPool(), velocityEngine()); }
@Bean public HTTPPostBinding httpPostBinding() { return new HTTPPostBinding(parserPool(), velocityEngine()); }
@Bean public HTTPPostBinding httpPostBinding() { return new HTTPPostBinding(parserPool(), velocityEngine()); }
@Bean @Autowired public HTTPPostBinding httpPostBinding(ParserPool parserPool, VelocityEngine velocityEngine, @Value("${sp.compare_endpoints}") boolean compareEndpoints) { HTTPPostEncoder encoder = new HTTPPostEncoder(velocityEngine, "/templates/saml2-post-binding.vm"); HTTPPostDecoder decoder = new HTTPPostDecoder(parserPool); if (!compareEndpoints) { decoder.setURIComparator((uri1, uri2) -> true); } return new HTTPPostBinding(parserPool, decoder, encoder); }
@VisibleForTesting protected HTTPPostBinding createDefaultPostBinding() { return new HTTPPostBinding(parserPool, getVelocityEngine()); }
@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); }