I'm learning Spring security using SAML. I got the example from
https://github.com/spring-projects/spring-security-saml
I'm in a network where I have proxy. So I hard to find this solution to enter proxy details. I used the following in securityContext.xml
<bean id="hostConfiguration" class="org.apache.commons.httpclient.HostConfiguration"/>
<bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
<property name="targetObject" ref="hostConfiguration"/>
<property name="targetMethod" value="setProxy"/>
<property name="arguments">
<list>
<value>proxyhost.com</value>
<value>5555</value>
</list>
</property>
</bean>
but still I'm getting connection refused error.
Open connection to idp.ssocircle.com:80
Closing the connection.
I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect
Connection refused: connect java.net.ConnectException: Connection refused: connect at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)`
Pardon me if my understanding is wrong, sorry for wasted your time if it is duplicate.