|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.http.nio.conn.ssl.SSLIOSessionStrategy
public class SSLIOSessionStrategy
TLS/SSL transport level security strategy.
Field Summary | |
---|---|
static org.apache.http.conn.ssl.X509HostnameVerifier |
ALLOW_ALL_HOSTNAME_VERIFIER
Deprecated. Do not use. |
static org.apache.http.conn.ssl.X509HostnameVerifier |
BROWSER_COMPATIBLE_HOSTNAME_VERIFIER
Deprecated. Do not use. |
static org.apache.http.conn.ssl.X509HostnameVerifier |
STRICT_HOSTNAME_VERIFIER
Deprecated. Do not use. |
Constructor Summary | |
---|---|
SSLIOSessionStrategy(SSLContext sslcontext)
|
|
SSLIOSessionStrategy(SSLContext sslcontext,
HostnameVerifier hostnameVerifier)
|
|
SSLIOSessionStrategy(SSLContext sslContext,
String[] supportedProtocols,
String[] supportedCipherSuites,
HostnameVerifier hostnameVerifier)
|
|
SSLIOSessionStrategy(SSLContext sslContext,
String[] supportedProtocols,
String[] supportedCipherSuites,
org.apache.http.conn.ssl.X509HostnameVerifier hostnameVerifier)
Deprecated. (4.1) use SSLIOSessionStrategy(
javax.net.ssl.SSLContext, String[], String[], javax.net.ssl.HostnameVerifier) |
|
SSLIOSessionStrategy(SSLContext sslcontext,
org.apache.http.conn.ssl.X509HostnameVerifier hostnameVerifier)
Deprecated. (4.1) |
Method Summary | |
---|---|
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(org.apache.http.HttpHost host,
org.apache.http.nio.reactor.IOSession ioSession)
Decorates the original IOSession with a transport level security
protocol implementation. |
protected void |
verifySession(org.apache.http.HttpHost host,
org.apache.http.nio.reactor.IOSession ioSession,
SSLSession sslsession)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@Deprecated public static final org.apache.http.conn.ssl.X509HostnameVerifier ALLOW_ALL_HOSTNAME_VERIFIER
@Deprecated public static final org.apache.http.conn.ssl.X509HostnameVerifier BROWSER_COMPATIBLE_HOSTNAME_VERIFIER
@Deprecated public static final org.apache.http.conn.ssl.X509HostnameVerifier STRICT_HOSTNAME_VERIFIER
Constructor Detail |
---|
@Deprecated public SSLIOSessionStrategy(SSLContext sslContext, String[] supportedProtocols, String[] supportedCipherSuites, org.apache.http.conn.ssl.X509HostnameVerifier hostnameVerifier)
SSLIOSessionStrategy(
javax.net.ssl.SSLContext, String[], String[], javax.net.ssl.HostnameVerifier)
@Deprecated public SSLIOSessionStrategy(SSLContext sslcontext, org.apache.http.conn.ssl.X509HostnameVerifier hostnameVerifier)
public SSLIOSessionStrategy(SSLContext sslContext, String[] supportedProtocols, String[] supportedCipherSuites, HostnameVerifier hostnameVerifier)
public SSLIOSessionStrategy(SSLContext sslcontext, HostnameVerifier hostnameVerifier)
public SSLIOSessionStrategy(SSLContext sslcontext)
Method Detail |
---|
public static HostnameVerifier getDefaultHostnameVerifier()
public static SSLIOSessionStrategy getDefaultStrategy()
public static SSLIOSessionStrategy getSystemDefaultStrategy()
public org.apache.http.nio.reactor.ssl.SSLIOSession upgrade(org.apache.http.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(org.apache.http.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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |