public class SNISocketFactory extends CustomSSLSocketFactory
Modifier and Type | Field and Description |
---|---|
protected static java.lang.ThreadLocal<SNISocketFactory> |
threadLocal |
protected java.net.URL |
url |
delegate
Constructor and Description |
---|
SNISocketFactory(javax.net.ssl.SSLSocketFactory delegate,
java.net.URL url) |
Modifier and Type | Method and Description |
---|---|
<V> V |
call(java.util.concurrent.Callable<V> callable)
Calls a
Callable in a context where this class's static
getDefault() method will return this SNISocketFactory . |
protected java.net.Socket |
configureSocket(java.net.Socket s) |
protected BCSNIHostName |
getBCSNIHostName() |
static javax.net.SocketFactory |
getDefault()
Signature matches
SSLSocketFactory.getDefault() so that it can be
used with e.g. |
createSocket, createSocket, createSocket, createSocket, createSocket, createSocket, createSocket, getDefaultCipherSuites, getSupportedCipherSuites
protected static final java.lang.ThreadLocal<SNISocketFactory> threadLocal
protected final java.net.URL url
public SNISocketFactory(javax.net.ssl.SSLSocketFactory delegate, java.net.URL url)
public static javax.net.SocketFactory getDefault()
SSLSocketFactory.getDefault()
so that it can be
used with e.g. the "java.naming.ldap.factory.socket" property or similar.call(Callable)
public <V> V call(java.util.concurrent.Callable<V> callable) throws java.lang.Exception
Callable
in a context where this class's static
getDefault()
method will return this SNISocketFactory
.java.lang.Exception
protected java.net.Socket configureSocket(java.net.Socket s)
configureSocket
in class CustomSSLSocketFactory
protected BCSNIHostName getBCSNIHostName()