protected void addSslHandler ( ChannelPipeline pipeline ) { if ( sslContext != null ) { SSLEngine engine = sslContext . createSSLEngine ( ) ; engine . setUseClientMode ( false ) ; pipeline . addLast ( SSL_HANDLER , new SslHandler ( engine ) ) ; } }
Adds the ssl handler