public class ThreadLocalTLSSocketFactory extends TLSSocketFactory
DEFAULT_PROTOCOL, factory, logger| Constructor and Description |
|---|
ThreadLocalTLSSocketFactory() |
| Modifier and Type | Method and Description |
|---|---|
static SocketFactory |
getDefault()
This returns the default SSL socket factory.
|
static SSLSocketFactory |
getHostnameVerifierFactory(SslConfig config,
String[] names)
Returns an instance of this socket factory configured with a hostname verifying trust manager.
|
SslConfig |
getSslConfig()
Returns the SSL configuration used by this socket factory.
|
void |
setSslConfig(SslConfig config)
Sets the SSL configuration used by this socket factory.
|
String |
toString() |
addHostnameVerifyingTrustManager, initializecreateSocket, createSocket, createSocket, createSocket, createSocket, createSocket, getDefaultCipherSuites, getFactory, getSocketConfig, getSupportedCipherSuites, initSSLSocket, setSocketConfigcreateSocketpublic SslConfig getSslConfig()
AbstractTLSSocketFactorygetSslConfig in class AbstractTLSSocketFactorypublic void setSslConfig(SslConfig config)
AbstractTLSSocketFactorysetSslConfig in class AbstractTLSSocketFactoryconfig - ssl configpublic static SocketFactory getDefault()
public static SSLSocketFactory getHostnameVerifierFactory(SslConfig config, String[] names)
HostnameVerifyingTrustManager with DefaultHostnameVerifier
is set. See TLSSocketFactory.addHostnameVerifyingTrustManager(SslConfig, String[]).config - to set on the socket factorynames - to use for hostname verificationpublic String toString()
toString in class TLSSocketFactoryCopyright © 2023. All rights reserved.