public class TrustAllSSLSocketFactory extends SSLSocketFactory
Its purpose is to ensure that all certificates - no matter from which CA - are accepted to enable the SSL-connection.
This is of course not secure
Constructor and Description |
---|
TrustAllSSLSocketFactory()
Standard constructor
|
Modifier and Type | Method and Description |
---|---|
Socket |
createSocket() |
Socket |
createSocket(InetAddress address,
int port) |
Socket |
createSocket(InetAddress address,
int port,
InetAddress localAddress,
int localPort) |
Socket |
createSocket(Socket socket,
String host,
int port,
boolean autoClose) |
Socket |
createSocket(String host,
int port) |
Socket |
createSocket(String host,
int port,
InetAddress localHost,
int localPort) |
static SocketFactory |
getDefault()
Factory method
|
String[] |
getDefaultCipherSuites() |
String[] |
getSupportedCipherSuites() |
createSocket
public static SocketFactory getDefault()
public Socket createSocket(Socket socket, String host, int port, boolean autoClose) throws IOException
createSocket
in class SSLSocketFactory
IOException
public Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException
createSocket
in class SocketFactory
IOException
public Socket createSocket(InetAddress address, int port) throws IOException
createSocket
in class SocketFactory
IOException
public Socket createSocket(String host, int port, InetAddress localHost, int localPort) throws IOException
createSocket
in class SocketFactory
IOException
public Socket createSocket(String host, int port) throws IOException
createSocket
in class SocketFactory
IOException
public Socket createSocket() throws IOException
createSocket
in class SocketFactory
IOException
public String[] getDefaultCipherSuites()
getDefaultCipherSuites
in class SSLSocketFactory
public String[] getSupportedCipherSuites()
getSupportedCipherSuites
in class SSLSocketFactory
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.