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() | 
createSocketpublic static SocketFactory getDefault()
public Socket createSocket(Socket socket, String host, int port, boolean autoClose) throws IOException
createSocket in class SSLSocketFactoryIOExceptionpublic Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException
createSocket in class SocketFactoryIOExceptionpublic Socket createSocket(InetAddress address, int port) throws IOException
createSocket in class SocketFactoryIOExceptionpublic Socket createSocket(String host, int port, InetAddress localHost, int localPort) throws IOException
createSocket in class SocketFactoryIOExceptionpublic Socket createSocket(String host, int port) throws IOException
createSocket in class SocketFactoryIOExceptionpublic Socket createSocket() throws IOException
createSocket in class SocketFactoryIOExceptionpublic String[] getDefaultCipherSuites()
getDefaultCipherSuites in class SSLSocketFactorypublic String[] getSupportedCipherSuites()
getSupportedCipherSuites in class SSLSocketFactoryCopyright © 1998-2019 Apache Software Foundation. All Rights Reserved.