Add support for configuring sslContext in StandardWebSocketClient #30680
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
Currently StandardWebSocketClient supports SSL using user properties:
standardWebSocketClient.setUserProperties(Map.of(Constants.SSL_CONTEXT_PROPERTY, sslContext));
Unfortunately this support ends with Tomcat 11. New way to go:
ClientEndpointConfig endpointConfig = ClientEndpointConfig.Builder.create().sslContext(sslContext).build();
But the creation of ClientEndpointConfig is capsulated in the class StandardWebSocketClient, so sslContext(...) can not be inserted there. Would it be possible to enable that?
The text was updated successfully, but these errors were encountered: