@VisibleForTesting
  void configureSSLEngine(final SSLEngine engine, final String hostName, final int port,
      final boolean clientSocket) {
    engine.setUseClientMode(clientSocket);
    final SSLParameters parameters = engine.getSSLParameters();
    configureSSLParameters(parameters, hostName, port, clientSocket);
    engine.setSSLParameters(parameters);
  }
Returns an SSLEngine that can be used to perform TLS handshakes and communication
geode-core/src/main/java/org/apache/geode/internal/net/SocketCreator.java