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
-
Field Summary
Modifier and TypeFieldDescriptionprotected final String
protected static final ThreadLocal
<SetHostSocketFactory> Fields inherited from class org.bouncycastle.jsse.util.CustomSSLSocketFactory
delegate
-
Constructor Summary
ConstructorDescriptionSetHostSocketFactory
(SSLSocketFactory delegate, String host) SetHostSocketFactory
(SSLSocketFactory delegate, URL url) -
Method Summary
Modifier and TypeMethodDescription<V> V
Calls aCallable
in a context where this class's staticgetDefault()
method will return thisSetHostSocketFactory
.protected Socket
static SocketFactory
Signature matchesSSLSocketFactory.getDefault()
so that it can be used with e.g.Methods inherited from class org.bouncycastle.jsse.util.CustomSSLSocketFactory
createSocket, createSocket, createSocket, createSocket, createSocket, createSocket, createSocket, getDefaultCipherSuites, getSupportedCipherSuites
-
Field Details
-
threadLocal
-
host
-
-
Constructor Details
-
SetHostSocketFactory
-
SetHostSocketFactory
-
-
Method Details
-
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
Calls aCallable
in a context where this class's staticgetDefault()
method will return thisSetHostSocketFactory
.- Throws:
Exception
-
configureSocket
- Overrides:
configureSocket
in classCustomSSLSocketFactory
-