public static SSLEngine getSSLEngine ( SSLContext context , FlowType type , SSLLinkConfig config , SSLConnectionLink connLink ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "getSSLEngine" ) ; } // Create a new SSL engine for this connection. SSLEngine engine = context . createSSLEngine ( ) ; configureEngine ( engine , type , config , connLink ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . exit ( tc , "getSSLEngine, hc=" + engine . hashCode ( ) ) ; } return engine ; }
Setup the SSL engine for the given context .