public final class HtmlUnitSSLConnectionSocketFactory extends SSLConnectionSocketFactory
ALLOW_ALL_HOSTNAME_VERIFIER, BROWSER_COMPATIBLE_HOSTNAME_VERIFIER, SSL, SSLV2, STRICT_HOSTNAME_VERIFIER, TLS| Modifier and Type | Method and Description |
|---|---|
static SSLConnectionSocketFactory |
buildSSLSocketFactory(WebClientOptions options)
Factory method that builds a new SSLConnectionSocketFactory.
|
Socket |
connectSocket(int connectTimeout,
Socket socket,
org.apache.http.HttpHost host,
InetSocketAddress remoteAddress,
InetSocketAddress localAddress,
org.apache.http.protocol.HttpContext context)
Connect via socket.
|
static void |
setUseSSL3Only(org.apache.http.protocol.HttpContext httpContext,
boolean ssl3Only)
Enables/Disables the exclusive usage of SSL3.
|
createLayeredSocket, createSocket, getDefaultHostnameVerifier, getSocketFactory, getSystemSocketFactory, prepareSocketpublic static void setUseSSL3Only(org.apache.http.protocol.HttpContext httpContext,
boolean ssl3Only)
httpContext - the http contextssl3Only - true or falsepublic static SSLConnectionSocketFactory buildSSLSocketFactory(WebClientOptions options)
options - the current WebClientOptionspublic Socket connectSocket(int connectTimeout, Socket socket, org.apache.http.HttpHost host, InetSocketAddress remoteAddress, InetSocketAddress localAddress, org.apache.http.protocol.HttpContext context) throws IOException
connectSocket in interface ConnectionSocketFactoryconnectSocket in class SSLConnectionSocketFactoryconnectTimeout - the timeoutsocket - the sockethost - the hostremoteAddress - the remote addresslocalAddress - the local addresscontext - the contextIOException - in case of problemsCopyright © 2002–2020 Gargoyle Software Inc.. All rights reserved.