code: protected void onHandshakeFinish(SSLEngine engine) {
          // PK16095 - control the SSLSession cache inside the JSSE2 code
  
          // security is creating the contexts, which should not change but might.
          // we keep the last seen in an attempt to set these values only once
          // per context. The alternative is to keep a list of each unique one
          // seen but who knows how large that might grow to, so simply update
          // based on last seen.
          SSLSessionContext context = null;
          try {
              final SSLEngine localEngine = engine;
              context = AccessController.doPrivileged(new PrivilegedExceptionAction<SSLSessionContext>() {
                  @Override
                  public SSLSessionContext run() throws Exception {
                      return localEngine.getSession().getSessionContext();
                  }
              });
          } catch (Exception e) {
              FFDCFilter.processException(e,
                                          getClass().getName() + ".onHandshakeFinish", "814");
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                  Tr.debug(tc, "Exception querying sessioncontext; " + e);
              }
              return;
          }
          if (null == context || context.equals(this.sessionContext)) {
              return;
          }
  
          if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
              Tr.debug(tc, "Channel [" + this + "] saving context: " + context);
          }
          this.sessionContext = context;
          context.setSessionCacheSize(getConfig().getSSLSessionCacheSize());
          context.setSessionTimeout(getConfig().getSSLSessionTimeout());
          if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
              Tr.debug(tc, "Session cache size set to " + context.getSessionCacheSize());
              Tr.debug(tc, "Session timeout set to " + context.getSessionTimeout());
          }
      }
docs: Utility method to be called when an SSL handshake has finished.
  
  @param engine