Class JettySslConnector

java.lang.Object
eu.mrapik.minecraftservermcp.mcp.JettySslConnector

public final class JettySslConnector extends Object
Builds a ServerConnector for HTTPS using a keystore from SslSettings.
  • Method Details

    • create

      public static org.eclipse.jetty.server.ServerConnector create(org.eclipse.jetty.server.Server server, SslSettings ssl, String bindAddress)
      Creates a TLS ServerConnector for HTTPS using the keystore and port from ssl.
      Parameters:
      server - Jetty server that will own this connector
      ssl - keystore path, passwords, and listen port
      bindAddress - host address to bind (same convention as plain HTTP)
      Returns:
      configured connector (add to the server before AbstractLifeCycle.start())