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) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
upgrade(TransportSecurityLayer tlsSession,
HttpHost host,
SocketAddress localAddress,
SocketAddress remoteAddress,
Object attachment,
Timeout handshakeTimeout)
Secures current session layer with TLS security.
|
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 boolean upgrade(TransportSecurityLayer tlsSession, HttpHost host, SocketAddress localAddress, SocketAddress remoteAddress, Object attachment, Timeout handshakeTimeout)
TlsStrategyupgrade in interface TlsStrategytlsSession - the session layerhost - the name of the opposite endpoint when givem or null otherwise.localAddress - the address of the local endpoint.remoteAddress - the address of the remote endpoint.attachment - arbitrary object passes to the TLS session initialization code.handshakeTimeout - the timeout to use while performing the TLS handshake; may be null.true if the session has been upgraded, false otherwise.Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.