public static SSLEngine getSslEngine ( SslConnection connection ) { if ( connection instanceof UndertowSslConnection ) { return ( ( UndertowSslConnection ) connection ) . getSSLEngine ( ) ; } else { return JsseXnioSsl . getSslEngine ( connection ) ; } }
Get the SSL engine for a given connection .