@Bean @Autowired public HTTPSOAP11Binding soapBinding(ParserPool parserPool) { return new HTTPSOAP11Binding(parserPool); }
@Bean @Autowired public HTTPSOAP11Binding httpSOAP11Binding(ParserPool parserPool) { return new HTTPSOAP11Binding(parserPool); }
/** * A SOAP binding to use. * * @return a SOAP binding * @see HTTPSOAP11Binding */ @Bean public HTTPSOAP11Binding soapBinding() { return new HTTPSOAP11Binding(parserPool()); }
@Bean public HTTPSOAP11Binding soapBinding() { return new HTTPSOAP11Binding(parserPool()); }
/** * A SOAP binding to use. * * @return a SOAP binding * @see HTTPSOAP11Binding */ @Bean public HTTPSOAP11Binding httpSOAP11Binding() { return new HTTPSOAP11Binding(parserPool()); }
@Bean public HTTPSOAP11Binding soapBinding() { return new HTTPSOAP11Binding(parserPool()); }
@Bean public HTTPSOAP11Binding httpSOAP11Binding() { return new HTTPSOAP11Binding(parserPool()); }
@VisibleForTesting protected HTTPSOAP11Binding createDefaultSoapBinding() { return new HTTPSOAP11Binding(parserPool); }
@Bean public HTTPSOAP11Binding httpSOAP11Binding() { return new HTTPSOAP11Binding(parserPool()); }
@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); }
@VisibleForTesting protected HTTPArtifactBinding createDefaultArtifactBinding(ServiceProviderBuilder builder) { HttpClientParams params = new HttpClientParams(); params.setIntParameter(HttpConnectionParams.CONNECTION_TIMEOUT, 60000); HttpClient httpClient = new HttpClient(params, new MultiThreadedHttpConnectionManager()); ArtifactResolutionProfileImpl artifactResolutionProfile = new ArtifactResolutionProfileImpl(httpClient); builder.setSharedObject(ArtifactResolutionProfile.class, artifactResolutionProfile); HTTPSOAP11Binding soapBinding = new HTTPSOAP11Binding(parserPool); artifactResolutionProfile.setProcessor(new SAMLProcessorImpl(soapBinding)); return new HTTPArtifactBinding(parserPool, getVelocityEngine(), artifactResolutionProfile); }