davmail.http
Class DavGatewaySSLProtocolSocketFactory

java.lang.Object
  extended by davmail.http.DavGatewaySSLProtocolSocketFactory
All Implemented Interfaces:
org.apache.commons.httpclient.protocol.ProtocolSocketFactory, org.apache.commons.httpclient.protocol.SecureProtocolSocketFactory

public class DavGatewaySSLProtocolSocketFactory
extends Object
implements org.apache.commons.httpclient.protocol.SecureProtocolSocketFactory

Manual Socket Factory. Let user choose to accept or reject certificate


Constructor Summary
DavGatewaySSLProtocolSocketFactory()
           
 
Method Summary
 Socket createSocket(Socket socket, String host, int port, boolean autoClose)
           
 Socket createSocket(String host, int port)
           
 Socket createSocket(String host, int port, InetAddress clientHost, int clientPort)
           
 Socket createSocket(String host, int port, InetAddress clientHost, int clientPort, org.apache.commons.httpclient.params.HttpConnectionParams params)
           
 boolean equals(Object obj)
          All instances of SSLProtocolSocketFactory are the same.
 int hashCode()
          All instances of SSLProtocolSocketFactory have the same hash code.
static void register()
          Register custom Socket Factory to let user accept or reject certificate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DavGatewaySSLProtocolSocketFactory

public DavGatewaySSLProtocolSocketFactory()
Method Detail

register

public static void register()
Register custom Socket Factory to let user accept or reject certificate


createSocket

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

createSocket

public Socket createSocket(String host,
                           int port,
                           InetAddress clientHost,
                           int clientPort,
                           org.apache.commons.httpclient.params.HttpConnectionParams params)
                    throws IOException
Specified by:
createSocket in interface org.apache.commons.httpclient.protocol.ProtocolSocketFactory
Throws:
IOException

createSocket

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

createSocket

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

equals

public boolean equals(Object obj)
All instances of SSLProtocolSocketFactory are the same.

Overrides:
equals in class Object

hashCode

public int hashCode()
All instances of SSLProtocolSocketFactory have the same hash code.

Overrides:
hashCode in class Object


Copyright © 2001-2013 MickaĆ«l Guessant. All Rights Reserved.