Package org.bouncycastle.jsse.util
Class SetHostSocketFactory
- java.lang.Object
-
- javax.net.SocketFactory
-
- javax.net.ssl.SSLSocketFactory
-
- org.bouncycastle.jsse.util.CustomSSLSocketFactory
-
- org.bouncycastle.jsse.util.SetHostSocketFactory
-
public class SetHostSocketFactory extends CustomSSLSocketFactory
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
host
protected static java.lang.ThreadLocal<SetHostSocketFactory>
threadLocal
-
Fields inherited from class org.bouncycastle.jsse.util.CustomSSLSocketFactory
delegate
-
-
Constructor Summary
Constructors Constructor Description SetHostSocketFactory(javax.net.ssl.SSLSocketFactory delegate, java.lang.String host)
SetHostSocketFactory(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 thisSetHostSocketFactory
.protected java.net.Socket
configureSocket(java.net.Socket s)
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<SetHostSocketFactory> threadLocal
-
host
protected final java.lang.String host
-
-
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 thisSetHostSocketFactory
.- Throws:
java.lang.Exception
-
configureSocket
protected java.net.Socket configureSocket(java.net.Socket s)
- Overrides:
configureSocket
in classCustomSSLSocketFactory
-
-