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, initialize
createSocket, createSocket, createSocket, createSocket, createSocket, createSocket, getDefaultCipherSuites, getFactory, getSocketConfig, getSupportedCipherSuites, initSSLSocket, setSocketConfig
createSocket
public SslConfig getSslConfig()
AbstractTLSSocketFactory
getSslConfig
in class AbstractTLSSocketFactory
public void setSslConfig(SslConfig config)
AbstractTLSSocketFactory
setSslConfig
in class AbstractTLSSocketFactory
config
- 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 TLSSocketFactory
Copyright © 2021. All rights reserved.