Class CustomSSLWebSocketServerFactory

java.lang.Object
org.java_websocket.server.DefaultSSLWebSocketServerFactory
org.java_websocket.server.CustomSSLWebSocketServerFactory
All Implemented Interfaces:
WebSocketFactory, WebSocketServerFactory

public class CustomSSLWebSocketServerFactory extends DefaultSSLWebSocketServerFactory
WebSocketFactory that can be configured to only support specific protocols and cipher suites.
  • Constructor Details

    • CustomSSLWebSocketServerFactory

      public CustomSSLWebSocketServerFactory(SSLContext sslContext, String[] enabledProtocols, String[] enabledCiphersuites)
      New CustomSSLWebSocketServerFactory configured to only support given protocols and given cipher suites.
      Parameters:
      sslContext - - can not be null
      enabledProtocols - - only these protocols are enabled, when null default settings will be used.
      enabledCiphersuites - - only these cipher suites are enabled, when null default settings will be used.
    • CustomSSLWebSocketServerFactory

      public CustomSSLWebSocketServerFactory(SSLContext sslContext, ExecutorService executerService, String[] enabledProtocols, String[] enabledCiphersuites)
      New CustomSSLWebSocketServerFactory configured to only support given protocols and given cipher suites.
      Parameters:
      sslContext - - can not be null
      executerService - - can not be null
      enabledProtocols - - only these protocols are enabled, when null default settings will be used.
      enabledCiphersuites - - only these cipher suites are enabled, when null default settings will be used.
  • Method Details