com.github.ignition.support.http.ssl
Class EasySSLSocketFactory
java.lang.Object
  
com.github.ignition.support.http.ssl.EasySSLSocketFactory
- All Implemented Interfaces: 
 - org.apache.http.conn.scheme.LayeredSocketFactory, org.apache.http.conn.scheme.SocketFactory
 
public class EasySSLSocketFactory
- extends Object
- implements org.apache.http.conn.scheme.SocketFactory, org.apache.http.conn.scheme.LayeredSocketFactory
  
This socket factory will create ssl socket that accepts self signed certificate
- Since:
 
  - 1.2.3
 
- Version:
 
  - $Id: EasySSLSocketFactory.java 765355 2009-04-15 20:59:07Z evenisse $
 
- Author:
 
  - olamy
 
 
 
 
EasySSLSocketFactory
public EasySSLSocketFactory()
connectSocket
public Socket connectSocket(Socket sock,
                            String host,
                            int port,
                            InetAddress localAddress,
                            int localPort,
                            org.apache.http.params.HttpParams params)
                     throws IOException,
                            UnknownHostException,
                            org.apache.http.conn.ConnectTimeoutException
- Specified by:
 connectSocket in interface org.apache.http.conn.scheme.SocketFactory
 
- Throws:
 IOException
UnknownHostException
org.apache.http.conn.ConnectTimeoutException- See Also:
 SocketFactory.connectSocket(java.net.Socket,
      java.lang.String, int, java.net.InetAddress, int, org.apache.http.params.HttpParams)
 
createSocket
public Socket createSocket()
                    throws IOException
- Specified by:
 createSocket in interface org.apache.http.conn.scheme.SocketFactory
 
- Throws:
 IOException- See Also:
 SocketFactory.createSocket()
 
isSecure
public boolean isSecure(Socket socket)
                 throws IllegalArgumentException
- Specified by:
 isSecure in interface org.apache.http.conn.scheme.SocketFactory
 
- Throws:
 IllegalArgumentException- See Also:
 SocketFactory.isSecure(java.net.Socket)
 
createSocket
public Socket createSocket(Socket socket,
                           String host,
                           int port,
                           boolean autoClose)
                    throws IOException,
                           UnknownHostException
- Specified by:
 createSocket in interface org.apache.http.conn.scheme.LayeredSocketFactory
 
- Throws:
 IOException
UnknownHostException- See Also:
 LayeredSocketFactory.createSocket(java.net.Socket,
      java.lang.String, int, boolean)
 
equals
public boolean equals(Object obj)
- Overrides:
 equals in class Object
 
 
hashCode
public int hashCode()
- Overrides:
 hashCode in class Object
 
 
Copyright © 2012. All Rights Reserved.