public class NonValidatingSSLSocketFactory
extends javax.net.ssl.SSLSocketFactory
| Modifier and Type | Class and Description |
|---|---|
static class |
NonValidatingSSLSocketFactory.NonValidatingTrustManager |
| Modifier and Type | Field and Description |
|---|---|
protected javax.net.ssl.SSLSocketFactory |
factory |
| Constructor and Description |
|---|
NonValidatingSSLSocketFactory(java.lang.String arg)
We provide a constructor that takes an unused argument solely because the ssl calling code will
look for this constructor first and then fall back to the no argument constructor, so we avoid
an exception and additional reflection lookups.
|
| Modifier and Type | Method and Description |
|---|---|
java.net.Socket |
createSocket(java.net.InetAddress host,
int port) |
java.net.Socket |
createSocket(java.net.InetAddress address,
int port,
java.net.InetAddress localAddress,
int localPort) |
java.net.Socket |
createSocket(java.net.Socket socket,
java.lang.String host,
int port,
boolean autoClose) |
java.net.Socket |
createSocket(java.lang.String host,
int port) |
java.net.Socket |
createSocket(java.lang.String host,
int port,
java.net.InetAddress localHost,
int localPort) |
java.lang.String[] |
getDefaultCipherSuites() |
java.lang.String[] |
getSupportedCipherSuites() |
public NonValidatingSSLSocketFactory(java.lang.String arg)
throws java.security.GeneralSecurityException
arg - input argumentjava.security.GeneralSecurityException - if something goes wrongpublic java.net.Socket createSocket(java.net.InetAddress host,
int port)
throws java.io.IOException
createSocket in class javax.net.SocketFactoryjava.io.IOExceptionpublic java.net.Socket createSocket(java.lang.String host,
int port)
throws java.io.IOException
createSocket in class javax.net.SocketFactoryjava.io.IOExceptionpublic java.net.Socket createSocket(java.lang.String host,
int port,
java.net.InetAddress localHost,
int localPort)
throws java.io.IOException
createSocket in class javax.net.SocketFactoryjava.io.IOExceptionpublic java.net.Socket createSocket(java.net.InetAddress address,
int port,
java.net.InetAddress localAddress,
int localPort)
throws java.io.IOException
createSocket in class javax.net.SocketFactoryjava.io.IOExceptionpublic java.net.Socket createSocket(java.net.Socket socket,
java.lang.String host,
int port,
boolean autoClose)
throws java.io.IOException
createSocket in class javax.net.ssl.SSLSocketFactoryjava.io.IOExceptionpublic java.lang.String[] getDefaultCipherSuites()
getDefaultCipherSuites in class javax.net.ssl.SSLSocketFactorypublic java.lang.String[] getSupportedCipherSuites()
getSupportedCipherSuites in class javax.net.ssl.SSLSocketFactory