public class DefaultSslEngineFactory extends SslEngineFactoryBase
| Constructor and Description |
|---|
DefaultSslEngineFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected io.netty.handler.ssl.SslContextBuilder |
configureSslContextBuilder(io.netty.handler.ssl.SslContextBuilder builder)
The last step of configuring the SslContextBuilder used to create an SslContext when no context is provided in the
AsyncHttpClientConfig. |
void |
init(AsyncHttpClientConfig config)
Perform any necessary one-time configuration.
|
SSLEngine |
newSslEngine(AsyncHttpClientConfig config,
String peerHost,
int peerPort)
Creates new
SSLEngine. |
configureSslEnginepublic SSLEngine newSslEngine(AsyncHttpClientConfig config, String peerHost, int peerPort)
SslEngineFactorySSLEngine.config - the client configpeerHost - the peer hostnamepeerPort - the peer portpublic void init(AsyncHttpClientConfig config) throws SSLException
SslEngineFactorynewSslEngine is called
for the first time.config - the client configSSLException - if initialization fails. If an exception is thrown, the instance will not be used as client
creation will fail.protected io.netty.handler.ssl.SslContextBuilder configureSslContextBuilder(io.netty.handler.ssl.SslContextBuilder builder)
AsyncHttpClientConfig. This defaults to no-op and
is intended to be overridden as needed.builder - builder with normal configuration appliedCopyright © 2017. All Rights Reserved.