public static SSLEngine getOutboundSSLEngine ( SSLContext context , SSLLinkConfig config , String host , int port , SSLConnectionLink connLink ) { // PK46069 - use engine that allows session id re-use if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "getOutboundSSLEngine, host=" + host + ", port=" + port ) ; } SSLEngine engine = context . createSSLEngine ( host , port ) ; configureEngine ( engine , FlowType . OUTBOUND , config , connLink ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . exit ( tc , "getOutboundSSLEngine, hc=" + engine . hashCode ( ) ) ; } return engine ; }
Create an SSL engine with the input parameters . The host and port values allow the re - use of possible cached SSL session ids .