Class DefaultWebSocketClientSslProvider

  • All Implemented Interfaces:
    WebsocketClientSslProvider

    public class DefaultWebSocketClientSslProvider
    extends java.lang.Object
    implements WebsocketClientSslProvider
    Client SSL provider that gets the SSL context in one of two ways. Either the setSslContext(javax.net.ssl.SSLContext) method can be invoked before connecting, and this context will be used for the next client connection from this thread, or alternatively the io.undertow.websocket.SSL_CONTEXT property can be set in the user properties of the ClientEndpointConfig.
    Author:
    Stuart Douglas
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String SSL_CONTEXT  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.xnio.ssl.XnioSsl getSsl​(org.xnio.XnioWorker worker, jakarta.websocket.Endpoint endpoint, jakarta.websocket.ClientEndpointConfig cec, java.net.URI uri)  
      org.xnio.ssl.XnioSsl getSsl​(org.xnio.XnioWorker worker, java.lang.Class<?> annotatedEndpoint, java.net.URI uri)  
      org.xnio.ssl.XnioSsl getSsl​(org.xnio.XnioWorker worker, java.lang.Object annotatedEndpointInstance, java.net.URI uri)  
      static void setSslContext​(javax.net.ssl.SSLContext context)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultWebSocketClientSslProvider

        public DefaultWebSocketClientSslProvider()
    • Method Detail

      • getSsl

        public org.xnio.ssl.XnioSsl getSsl​(org.xnio.XnioWorker worker,
                                           java.lang.Class<?> annotatedEndpoint,
                                           java.net.URI uri)
        Specified by:
        getSsl in interface WebsocketClientSslProvider
      • getSsl

        public org.xnio.ssl.XnioSsl getSsl​(org.xnio.XnioWorker worker,
                                           java.lang.Object annotatedEndpointInstance,
                                           java.net.URI uri)
        Specified by:
        getSsl in interface WebsocketClientSslProvider
      • getSsl

        public org.xnio.ssl.XnioSsl getSsl​(org.xnio.XnioWorker worker,
                                           jakarta.websocket.Endpoint endpoint,
                                           jakarta.websocket.ClientEndpointConfig cec,
                                           java.net.URI uri)
        Specified by:
        getSsl in interface WebsocketClientSslProvider
      • setSslContext

        public static void setSslContext​(javax.net.ssl.SSLContext context)