public class TrustingSslSocketFactory
extends javax.net.ssl.SSLSocketFactory
Modifier and Type | Field and Description |
---|---|
static javax.net.ssl.TrustManager |
TRUST_ALL
trusts all SSL certificates
|
Modifier and Type | Method and Description |
---|---|
static <T extends java.net.URLConnection> |
configure(T connection)
configures a connection to accept all certificates, if it is for https
|
java.net.Socket |
createSocket() |
java.net.Socket |
createSocket(java.net.InetAddress arg0,
int arg1) |
java.net.Socket |
createSocket(java.net.InetAddress arg0,
int arg1,
java.net.InetAddress arg2,
int arg3) |
java.net.Socket |
createSocket(java.net.Socket socket,
java.lang.String host,
int port,
boolean autoClose) |
java.net.Socket |
createSocket(java.lang.String arg0,
int arg1) |
java.net.Socket |
createSocket(java.lang.String arg0,
int arg1,
java.net.InetAddress arg2,
int arg3) |
java.lang.String[] |
getDefaultCipherSuites() |
static TrustingSslSocketFactory |
getInstance() |
java.lang.String[] |
getSupportedCipherSuites() |
public static final javax.net.ssl.TrustManager TRUST_ALL
public static TrustingSslSocketFactory getInstance()
public static <T extends java.net.URLConnection> T configure(T connection)
public java.net.Socket createSocket(java.net.Socket socket, java.lang.String host, int port, boolean autoClose) throws java.io.IOException, java.net.UnknownHostException
createSocket
in class javax.net.ssl.SSLSocketFactory
java.io.IOException
java.net.UnknownHostException
public java.net.Socket createSocket() throws java.io.IOException
createSocket
in class javax.net.SocketFactory
java.io.IOException
public java.lang.String[] getDefaultCipherSuites()
getDefaultCipherSuites
in class javax.net.ssl.SSLSocketFactory
public java.lang.String[] getSupportedCipherSuites()
getSupportedCipherSuites
in class javax.net.ssl.SSLSocketFactory
public java.net.Socket createSocket(java.lang.String arg0, int arg1) throws java.io.IOException, java.net.UnknownHostException
createSocket
in class javax.net.SocketFactory
java.io.IOException
java.net.UnknownHostException
public java.net.Socket createSocket(java.net.InetAddress arg0, int arg1) throws java.io.IOException
createSocket
in class javax.net.SocketFactory
java.io.IOException
public java.net.Socket createSocket(java.lang.String arg0, int arg1, java.net.InetAddress arg2, int arg3) throws java.io.IOException, java.net.UnknownHostException
createSocket
in class javax.net.SocketFactory
java.io.IOException
java.net.UnknownHostException
public java.net.Socket createSocket(java.net.InetAddress arg0, int arg1, java.net.InetAddress arg2, int arg3) throws java.io.IOException
createSocket
in class javax.net.SocketFactory
java.io.IOException