public class H2ClientTlsStrategy extends Object implements TlsStrategy
TlsStrategy
that upgrades to TLS for all endpoints
with HTTPS
scheme.Constructor and Description |
---|
H2ClientTlsStrategy() |
H2ClientTlsStrategy(SSLContext sslContext) |
H2ClientTlsStrategy(SSLContext sslContext,
SSLBufferMode sslBufferMode,
SSLSessionInitializer initializer,
SSLSessionVerifier verifier) |
H2ClientTlsStrategy(SSLContext sslContext,
SSLSessionInitializer initializer,
SSLSessionVerifier verifier) |
H2ClientTlsStrategy(SSLContext sslContext,
SSLSessionVerifier verifier) |
H2ClientTlsStrategy(SSLSessionVerifier verifier)
Constructor with the default SSL context based on system properties and custom
SSLSessionVerifier . |
Modifier and Type | Method and Description |
---|---|
boolean |
upgrade(TransportSecurityLayer tlsSession,
HttpHost host,
SocketAddress localAddress,
SocketAddress remoteAddress,
Object attachment,
Timeout handshakeTimeout)
|
void |
upgrade(TransportSecurityLayer tlsSession,
NamedEndpoint endpoint,
Object attachment,
Timeout handshakeTimeout,
FutureCallback<TransportSecurityLayer> callback) |
public H2ClientTlsStrategy(SSLContext sslContext, SSLBufferMode sslBufferMode, SSLSessionInitializer initializer, SSLSessionVerifier verifier)
public H2ClientTlsStrategy(SSLContext sslContext, SSLSessionInitializer initializer, SSLSessionVerifier verifier)
public H2ClientTlsStrategy(SSLContext sslContext, SSLSessionVerifier verifier)
public H2ClientTlsStrategy(SSLContext sslContext)
public H2ClientTlsStrategy()
public H2ClientTlsStrategy(SSLSessionVerifier verifier)
SSLSessionVerifier
.verifier
- the custom SSLSessionVerifier
.SSLContext
public void upgrade(TransportSecurityLayer tlsSession, NamedEndpoint endpoint, Object attachment, Timeout handshakeTimeout, FutureCallback<TransportSecurityLayer> callback)
upgrade
in interface TlsStrategy
@Deprecated public boolean upgrade(TransportSecurityLayer tlsSession, HttpHost host, SocketAddress localAddress, SocketAddress remoteAddress, Object attachment, Timeout handshakeTimeout)
upgrade
in interface TlsStrategy
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.