@Contract(threading=STATELESS) public class DefaultClientTlsStrategy extends Object implements TlsStrategy
| Constructor and Description |
|---|
DefaultClientTlsStrategy(SSLContext sslcontext) |
DefaultClientTlsStrategy(SSLContext sslcontext,
HostnameVerifier hostnameVerifier) |
DefaultClientTlsStrategy(SSLContext sslContext,
String[] supportedProtocols,
String[] supportedCipherSuites,
SSLBufferMode sslBufferManagement,
HostnameVerifier hostnameVerifier) |
DefaultClientTlsStrategy(SSLContext sslContext,
String[] supportedProtocols,
String[] supportedCipherSuites,
SSLBufferMode sslBufferManagement,
HostnameVerifier hostnameVerifier,
Factory<SSLEngine,TlsDetails> tlsDetailsFactory) |
| Modifier and Type | Method and Description |
|---|---|
static TlsStrategy |
getDefault() |
static TlsStrategy |
getSystemDefault() |
protected void |
initializeEngine(SSLEngine sslEngine) |
boolean |
upgrade(TransportSecurityLayer tlsSession,
HttpHost host,
SocketAddress localAddress,
SocketAddress remoteAddress,
Object attachment) |
protected void |
verifySession(String hostname,
SSLSession sslsession) |
public DefaultClientTlsStrategy(SSLContext sslContext, String[] supportedProtocols, String[] supportedCipherSuites, SSLBufferMode sslBufferManagement, HostnameVerifier hostnameVerifier, Factory<SSLEngine,TlsDetails> tlsDetailsFactory)
public DefaultClientTlsStrategy(SSLContext sslContext, String[] supportedProtocols, String[] supportedCipherSuites, SSLBufferMode sslBufferManagement, HostnameVerifier hostnameVerifier)
public DefaultClientTlsStrategy(SSLContext sslcontext, HostnameVerifier hostnameVerifier)
public DefaultClientTlsStrategy(SSLContext sslcontext)
public static TlsStrategy getDefault()
public static TlsStrategy getSystemDefault()
public boolean upgrade(TransportSecurityLayer tlsSession, HttpHost host, SocketAddress localAddress, SocketAddress remoteAddress, Object attachment)
upgrade in interface TlsStrategyprotected void initializeEngine(SSLEngine sslEngine)
protected void verifySession(String hostname, SSLSession sslsession) throws SSLException
SSLExceptionCopyright © 1999–2018 The Apache Software Foundation. All rights reserved.