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>threadLocalprotected java.net.URLurl-
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> Vcall(java.util.concurrent.Callable<V> callable)Calls aCallablein a context where this class's staticgetDefault()method will return thisSNISocketFactory.protected java.net.SocketconfigureSocket(java.net.Socket s)protected BCSNIHostNamegetBCSNIHostName()static javax.net.SocketFactorygetDefault()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.ExceptionCalls aCallablein 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:
configureSocketin classCustomSSLSocketFactory
-
getBCSNIHostName
protected BCSNIHostName getBCSNIHostName()
-
-