public class H2ServerTlsStrategy extends Object implements TlsStrategy
TlsStrategy that upgrades to TLS for endpoints
with the specified local ports.| 构造器和说明 |
|---|
H2ServerTlsStrategy() |
H2ServerTlsStrategy(int... securePorts)
已过时。
|
H2ServerTlsStrategy(SSLContext sslContext) |
H2ServerTlsStrategy(SSLContext sslContext,
SecurePortStrategy securePortStrategy)
已过时。
|
H2ServerTlsStrategy(SSLContext sslContext,
SecurePortStrategy securePortStrategy,
SSLBufferMode sslBufferMode,
SSLSessionInitializer initializer,
SSLSessionVerifier verifier)
|
H2ServerTlsStrategy(SSLContext sslContext,
SecurePortStrategy securePortStrategy,
SSLSessionInitializer initializer,
SSLSessionVerifier verifier)
|
H2ServerTlsStrategy(SSLContext sslContext,
SecurePortStrategy securePortStrategy,
SSLSessionVerifier verifier)
|
H2ServerTlsStrategy(SSLContext sslContext,
SSLBufferMode sslBufferMode,
SSLSessionInitializer initializer,
SSLSessionVerifier verifier) |
H2ServerTlsStrategy(SSLContext sslContext,
SSLSessionInitializer initializer,
SSLSessionVerifier verifier) |
H2ServerTlsStrategy(SSLContext sslContext,
SSLSessionVerifier verifier) |
| 限定符和类型 | 方法和说明 |
|---|---|
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)
Secures current session layer with TLS.
|
@Deprecated public H2ServerTlsStrategy(SSLContext sslContext, SecurePortStrategy securePortStrategy, SSLBufferMode sslBufferMode, SSLSessionInitializer initializer, SSLSessionVerifier verifier)
@Deprecated public H2ServerTlsStrategy(SSLContext sslContext, SecurePortStrategy securePortStrategy, SSLSessionInitializer initializer, SSLSessionVerifier verifier)
@Deprecated public H2ServerTlsStrategy(SSLContext sslContext, SecurePortStrategy securePortStrategy, SSLSessionVerifier verifier)
@Deprecated public H2ServerTlsStrategy(SSLContext sslContext, SecurePortStrategy securePortStrategy)
H2ServerTlsStrategy(SSLContext)@Deprecated public H2ServerTlsStrategy(int... securePorts)
H2ServerTlsStrategy()public H2ServerTlsStrategy(SSLContext sslContext, SSLBufferMode sslBufferMode, SSLSessionInitializer initializer, SSLSessionVerifier verifier)
public H2ServerTlsStrategy(SSLContext sslContext, SSLSessionInitializer initializer, SSLSessionVerifier verifier)
public H2ServerTlsStrategy(SSLContext sslContext, SSLSessionVerifier verifier)
public H2ServerTlsStrategy(SSLContext sslContext)
public H2ServerTlsStrategy()
public void upgrade(TransportSecurityLayer tlsSession, NamedEndpoint endpoint, Object attachment, Timeout handshakeTimeout, FutureCallback<TransportSecurityLayer> callback)
TlsStrategyupgrade 在接口中 TlsStrategytlsSession - the session layerendpoint - the name of the opposite endpoint when applicable or null otherwise.attachment - arbitrary object passes to the TLS session initialization code.handshakeTimeout - the timeout to use while performing the TLS handshake; may be null.callback - Operation result callback.@Deprecated public boolean upgrade(TransportSecurityLayer tlsSession, HttpHost host, SocketAddress localAddress, SocketAddress remoteAddress, Object attachment, Timeout handshakeTimeout)
TlsStrategyupgrade 在接口中 TlsStrategytlsSession - 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 © 2023. All rights reserved.