Class EasySslSocketFactory

java.lang.Object
edu.internet2.middleware.grouperClient.ssl.EasySslSocketFactory
All Implemented Interfaces:
org.apache.commons.httpclient.protocol.ProtocolSocketFactory, org.apache.commons.httpclient.protocol.SecureProtocolSocketFactory

public class EasySslSocketFactory extends Object implements org.apache.commons.httpclient.protocol.SecureProtocolSocketFactory
Apache code for SSL that doesnt fail with self-signed certs
  • Constructor Details

    • EasySslSocketFactory

      public EasySslSocketFactory()
  • Method Details

    • createSocket

      public Socket createSocket(String host, int port, InetAddress clientHost, int clientPort) throws IOException, UnknownHostException
      Specified by:
      createSocket in interface org.apache.commons.httpclient.protocol.ProtocolSocketFactory
      Throws:
      IOException
      UnknownHostException
      See Also:
      • ProtocolSocketFactory.createSocket(java.lang.String,int,java.net.InetAddress,int)
    • createSocket

      public Socket createSocket(String host, int port) throws IOException, UnknownHostException
      Specified by:
      createSocket in interface org.apache.commons.httpclient.protocol.ProtocolSocketFactory
      Throws:
      IOException
      UnknownHostException
      See Also:
      • ProtocolSocketFactory.createSocket(java.lang.String,int)
    • createSocket

      public Socket createSocket(Socket socket, String host, int port, boolean autoClose) throws IOException, UnknownHostException
      Specified by:
      createSocket in interface org.apache.commons.httpclient.protocol.SecureProtocolSocketFactory
      Throws:
      IOException
      UnknownHostException
      See Also:
      • SecureProtocolSocketFactory.createSocket(java.net.Socket,java.lang.String,int,boolean)
    • createSocket

      public Socket createSocket(String host, int port, InetAddress clientHost, int clientPort, org.apache.commons.httpclient.params.HttpConnectionParams arg4) throws IOException, UnknownHostException, org.apache.commons.httpclient.ConnectTimeoutException
      Specified by:
      createSocket in interface org.apache.commons.httpclient.protocol.ProtocolSocketFactory
      Throws:
      IOException
      UnknownHostException
      org.apache.commons.httpclient.ConnectTimeoutException
      See Also:
      • ProtocolSocketFactory.createSocket(java.lang.String, int, java.net.InetAddress, int, org.apache.commons.httpclient.params.HttpConnectionParams)