Package org.bouncycastle.jsse.util
Class SNISocketFactory
- java.lang.Object
-
- javax.net.SocketFactory
-
- javax.net.ssl.SSLSocketFactory
-
- org.bouncycastle.jsse.util.CustomSSLSocketFactory
-
- org.bouncycastle.jsse.util.SNISocketFactory
-
public class SNISocketFactory extends CustomSSLSocketFactory
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.ThreadLocal<SNISocketFactory>
threadLocal
protected java.net.URL
url
-
Fields inherited from class org.bouncycastle.jsse.util.CustomSSLSocketFactory
delegate
-
-
Constructor Summary
Constructors Constructor Description SNISocketFactory(javax.net.ssl.SSLSocketFactory delegate, java.net.URL url)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <V> V
call(java.util.concurrent.Callable<V> callable)
Calls aCallable
in a context where this class's staticgetDefault()
method will return thisSNISocketFactory
.protected java.net.Socket
configureSocket(java.net.Socket s)
protected BCSNIHostName
getBCSNIHostName()
static javax.net.SocketFactory
getDefault()
Signature matchesSSLSocketFactory.getDefault()
so that it can be used with e.g. the "java.naming.ldap.factory.socket" property or similar.-
Methods inherited from class org.bouncycastle.jsse.util.CustomSSLSocketFactory
createSocket, createSocket, createSocket, createSocket, createSocket, createSocket, createSocket, getDefaultCipherSuites, getSupportedCipherSuites
-
-
-
-
Field Detail
-
threadLocal
protected static final java.lang.ThreadLocal<SNISocketFactory> threadLocal
-
url
protected final java.net.URL url
-
-
Method Detail
-
getDefault
public static javax.net.SocketFactory getDefault()
Signature matchesSSLSocketFactory.getDefault()
so that it can be used with e.g. the "java.naming.ldap.factory.socket" property or similar.- See Also:
call(Callable)
-
call
public <V> V call(java.util.concurrent.Callable<V> callable) throws java.lang.Exception
Calls aCallable
in a context where this class's staticgetDefault()
method will return thisSNISocketFactory
.- Throws:
java.lang.Exception
-
configureSocket
protected java.net.Socket configureSocket(java.net.Socket s)
- Overrides:
configureSocket
in classCustomSSLSocketFactory
-
getBCSNIHostName
protected BCSNIHostName getBCSNIHostName()
-
-