public class DefaultSslCodec extends SslCodec
SslCodec that uses a statically created SSLEngine or a provided factory to
create one dynamically.
No custom configurations are applied to the created SslHandler unless done so explicity by overriding
configureHandler(SslHandler)| Constructor and Description |
|---|
DefaultSslCodec(rx.functions.Func1<io.netty.buffer.ByteBufAllocator,javax.net.ssl.SSLEngine> engineFactory) |
DefaultSslCodec(javax.net.ssl.SSLEngine sslEngine) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureHandler(io.netty.handler.ssl.SslHandler handler)
An optional method that can be overridden to add any custom configurations to the
SslHandler returned
by newSslHandler(ChannelPipeline) |
protected io.netty.handler.ssl.SslHandler |
newSslHandler(io.netty.channel.ChannelPipeline pipeline) |
public DefaultSslCodec(rx.functions.Func1<io.netty.buffer.ByteBufAllocator,javax.net.ssl.SSLEngine> engineFactory)
public DefaultSslCodec(javax.net.ssl.SSLEngine sslEngine)
protected io.netty.handler.ssl.SslHandler newSslHandler(io.netty.channel.ChannelPipeline pipeline)
newSslHandler in class SslCodecprotected void configureHandler(io.netty.handler.ssl.SslHandler handler)
SslHandler returned
by newSslHandler(ChannelPipeline)handler - Handler to configure.