java.lang.Object
edu.internet2.middleware.grouperClientExt.org.apache.commons.httpclient.contrib.ssl.SocketFactoryWrapper
All Implemented Interfaces:
ProtocolSocketFactory, SecureProtocolSocketFactory

public class SocketFactoryWrapper extends Object implements SecureProtocolSocketFactory
Author: Mark Claassen

Uses some code from EasySSLProtocolSocketFactory.java

Wraps a SSLSocketFactory with a SecureProtocolSocketFactory.

This was designed to make HttpClient work in situations where an application is being deployed by Java Web Start. In these cases, SSL connections are negotiated by webstart implementations of the KeyManager and TrustManager. Wrapping the socket factory obtained from HttpsURLConnection.getDefaultSocketFactory allows the use of HttpClient while still leveraging Java Web Start's handling of SSL certificates