public class SSLIOSessionStrategy extends Object implements SchemeIOSessionStrategy
Modifier and Type | Field and Description |
---|---|
static X509HostnameVerifier |
ALLOW_ALL_HOSTNAME_VERIFIER
Deprecated.
|
static X509HostnameVerifier |
BROWSER_COMPATIBLE_HOSTNAME_VERIFIER
Deprecated.
|
static X509HostnameVerifier |
STRICT_HOSTNAME_VERIFIER
Deprecated.
|
Constructor and Description |
---|
SSLIOSessionStrategy(SSLContext sslcontext) |
SSLIOSessionStrategy(SSLContext sslcontext,
HostnameVerifier hostnameVerifier) |
SSLIOSessionStrategy(SSLContext sslContext,
String[] supportedProtocols,
String[] supportedCipherSuites,
HostnameVerifier hostnameVerifier) |
SSLIOSessionStrategy(SSLContext sslContext,
String[] supportedProtocols,
String[] supportedCipherSuites,
X509HostnameVerifier hostnameVerifier)
|
SSLIOSessionStrategy(SSLContext sslcontext,
X509HostnameVerifier hostnameVerifier)
Deprecated.
(4.1)
|
Modifier and Type | Method and Description |
---|---|
static HostnameVerifier |
getDefaultHostnameVerifier() |
static SSLIOSessionStrategy |
getDefaultStrategy() |
static SSLIOSessionStrategy |
getSystemDefaultStrategy() |
protected void |
initializeEngine(SSLEngine engine) |
boolean |
isLayeringRequired()
Determines whether or not protocol layering is required.
|
org.apache.http.nio.reactor.ssl.SSLIOSession |
upgrade(HttpHost host,
org.apache.http.nio.reactor.IOSession iosession)
Decorates the original
IOSession with a transport level security
protocol implementation. |
protected void |
verifySession(HttpHost host,
org.apache.http.nio.reactor.IOSession iosession,
SSLSession sslsession) |
@Deprecated public static final X509HostnameVerifier ALLOW_ALL_HOSTNAME_VERIFIER
@Deprecated public static final X509HostnameVerifier BROWSER_COMPATIBLE_HOSTNAME_VERIFIER
@Deprecated public static final X509HostnameVerifier STRICT_HOSTNAME_VERIFIER
@Deprecated public SSLIOSessionStrategy(SSLContext sslContext, String[] supportedProtocols, String[] supportedCipherSuites, X509HostnameVerifier hostnameVerifier)
@Deprecated public SSLIOSessionStrategy(SSLContext sslcontext, X509HostnameVerifier hostnameVerifier)
public SSLIOSessionStrategy(SSLContext sslContext, String[] supportedProtocols, String[] supportedCipherSuites, HostnameVerifier hostnameVerifier)
public SSLIOSessionStrategy(SSLContext sslcontext, HostnameVerifier hostnameVerifier)
public SSLIOSessionStrategy(SSLContext sslcontext)
public static HostnameVerifier getDefaultHostnameVerifier()
public static SSLIOSessionStrategy getDefaultStrategy()
public static SSLIOSessionStrategy getSystemDefaultStrategy()
public org.apache.http.nio.reactor.ssl.SSLIOSession upgrade(HttpHost host, org.apache.http.nio.reactor.IOSession iosession) throws IOException
SchemeIOSessionStrategy
IOSession
with a transport level security
protocol implementation.upgrade
in interface SchemeIOSessionStrategy
host
- the target host.iosession
- the I/O session.IOException
protected void initializeEngine(SSLEngine engine)
protected void verifySession(HttpHost host, org.apache.http.nio.reactor.IOSession iosession, SSLSession sslsession) throws SSLException
SSLException
public boolean isLayeringRequired()
SchemeIOSessionStrategy
false
the upgrade
method is expected
to have no effect and should not be called.isLayeringRequired
in interface SchemeIOSessionStrategy
Copyright © 2010–2021 The Apache Software Foundation. All rights reserved.