org.apache.maven.continuum.project.builder
Class EasySSLSocketFactory

java.lang.Object
  extended by org.apache.maven.continuum.project.builder.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 1372260 2012-08-13 04:29:09Z brett $
Author:
olamy

Constructor Summary
EasySSLSocketFactory()
           
 
Method Summary
 Socket connectSocket(Socket sock, String host, int port, InetAddress localAddress, int localPort, org.apache.http.params.HttpParams params)
           
 Socket createSocket()
           
 Socket createSocket(Socket socket, String host, int port, boolean autoClose)
           
 boolean equals(Object obj)
           
 int hashCode()
           
 boolean isSecure(Socket socket)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EasySSLSocketFactory

public EasySSLSocketFactory()
Method Detail

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 © 2003-2013 The Apache Software Foundation. All Rights Reserved.