net.sf.jameleon.plugin.htmlunit.util
Class TrustEverythingSSLProtocolSocketFactory
java.lang.Object
net.sf.jameleon.plugin.htmlunit.util.TrustEverythingSSLProtocolSocketFactory
- All Implemented Interfaces:
- org.apache.commons.httpclient.protocol.ProtocolSocketFactory, org.apache.commons.httpclient.protocol.SecureProtocolSocketFactory
public class TrustEverythingSSLProtocolSocketFactory
- extends Object
- implements org.apache.commons.httpclient.protocol.SecureProtocolSocketFactory
An implementation of SecureProtocolSocketFactory that allows invalid certs through through
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 localAddress,
int localPort,
org.apache.commons.httpclient.params.HttpConnectionParams params)
|
boolean |
equals(Object obj)
|
int |
hashCode()
|
TrustEverythingSSLProtocolSocketFactory
public TrustEverythingSSLProtocolSocketFactory()
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
createSocket
public Socket createSocket(String host,
int port,
InetAddress localAddress,
int localPort,
org.apache.commons.httpclient.params.HttpConnectionParams params)
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
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
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
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2006-2008 Christian Hargraves. All Rights Reserved.