public SslHandler create ( ByteBufAllocator bufferAllocator ) { SSLEngine engine = sslContext . newEngine ( bufferAllocator ) ; engine . setNeedClientAuth ( needClientAuth ) ; engine . setUseClientMode ( false ) ; return new SslHandler ( engine ) ; }
Creates an SslHandler