|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gargoylesoftware.htmlunit.ssl.InsecureSSLProtocolSocketFactory
public class InsecureSSLProtocolSocketFactory
A completely insecure (yet very easy to use) SSL socket factory. This socket factory will establish connections to any server from any client, regardless of credentials or the lack thereof. This is especially useful when you are trying to connect to a server with expired or corrupt certificates... this class doesn't care!
WebClient.setUseInsecureSSL(boolean)
Constructor Summary | |
---|---|
InsecureSSLProtocolSocketFactory()
Creates a new insecure SSL protocol socket factory. |
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 |
isSecure(Socket sock)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InsecureSSLProtocolSocketFactory() throws GeneralSecurityException
GeneralSecurityException
- if a security error occursMethod Detail |
---|
public Socket createSocket(Socket socket, String host, int port, boolean autoClose) throws IOException, UnknownHostException
IOException
UnknownHostException
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
connectSocket
in interface org.apache.http.conn.scheme.SocketFactory
IOException
UnknownHostException
org.apache.http.conn.ConnectTimeoutException
public Socket createSocket() throws IOException
createSocket
in interface org.apache.http.conn.scheme.SocketFactory
IOException
public boolean isSecure(Socket sock) throws IllegalArgumentException
isSecure
in interface org.apache.http.conn.scheme.SocketFactory
IllegalArgumentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |