public class ConscryptServerTlsStrategy extends Object implements TlsStrategy
TlsStrategy
that upgrades to TLS for endpoints
with the specified local ports.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.
|
@Deprecated public ConscryptServerTlsStrategy(SSLContext sslContext, SecurePortStrategy securePortStrategy, SSLBufferMode sslBufferMode, SSLSessionInitializer initializer, SSLSessionVerifier verifier)
@Deprecated public ConscryptServerTlsStrategy(SSLContext sslContext, SecurePortStrategy securePortStrategy, SSLSessionInitializer initializer, SSLSessionVerifier verifier)
@Deprecated public ConscryptServerTlsStrategy(SSLContext sslContext, SecurePortStrategy securePortStrategy, SSLSessionVerifier verifier)
ConscryptServerTlsStrategy(SSLContext, SSLSessionVerifier)
@Deprecated public ConscryptServerTlsStrategy(SSLContext sslContext, SecurePortStrategy securePortStrategy)
ConscryptServerTlsStrategy(SSLContext)
@Deprecated public ConscryptServerTlsStrategy(SSLContext sslContext, int... securePorts)
ConscryptServerTlsStrategy(SSLContext)
public ConscryptServerTlsStrategy(SSLContext sslContext, SSLBufferMode sslBufferMode, SSLSessionInitializer initializer, SSLSessionVerifier verifier)
public ConscryptServerTlsStrategy(SSLContext sslContext, SSLSessionInitializer initializer, SSLSessionVerifier verifier)
public ConscryptServerTlsStrategy(SSLContext sslContext, SSLSessionVerifier verifier)
public ConscryptServerTlsStrategy(SSLContext sslContext)
public boolean upgrade(TransportSecurityLayer tlsSession, HttpHost host, SocketAddress localAddress, SocketAddress remoteAddress, Object attachment, Timeout handshakeTimeout)
TlsStrategy
upgrade
in interface TlsStrategy
tlsSession
- the session layerhost
- the name of the opposite endpoint when given 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–2022 The Apache Software Foundation. All rights reserved.