0

I am trying to design a Jetty instance that accepts incoming requests in two forms: 1. Mutual authentication 2. Non-mutual authentication

Is this possible to do using a single connector with two ports?

Thanks!

1 Answers1

0

By design, a ServerConnector is bound to 1 and only 1 port.

If you need 2 separate ports, then you'll need 2 separate ServerConnector configurations.

And based on your question, you'll need different SslContextFactory configurations for each connector.

Joakim Erdfelt
  • 46,896
  • 7
  • 86
  • 136