Package io.undertow.websockets.jsr
Class DefaultWebSocketClientSslProvider
- java.lang.Object
-
- io.undertow.websockets.jsr.DefaultWebSocketClientSslProvider
-
- All Implemented Interfaces:
WebsocketClientSslProvider
public class DefaultWebSocketClientSslProvider extends Object implements WebsocketClientSslProvider
Client SSL provider that gets the SSL context in one of two ways. Either thesetSslContext(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 StringSSL_CONTEXT
-
Constructor Summary
Constructors Constructor Description DefaultWebSocketClientSslProvider()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.xnio.ssl.XnioSslgetSsl(org.xnio.XnioWorker worker, jakarta.websocket.Endpoint endpoint, jakarta.websocket.ClientEndpointConfig cec, URI uri)org.xnio.ssl.XnioSslgetSsl(org.xnio.XnioWorker worker, Class<?> annotatedEndpoint, URI uri)org.xnio.ssl.XnioSslgetSsl(org.xnio.XnioWorker worker, Object annotatedEndpointInstance, URI uri)static voidsetSslContext(SSLContext context)
-
-
-
Field Detail
-
SSL_CONTEXT
public static final String SSL_CONTEXT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSsl
public org.xnio.ssl.XnioSsl getSsl(org.xnio.XnioWorker worker, Class<?> annotatedEndpoint, URI uri)- Specified by:
getSslin interfaceWebsocketClientSslProvider
-
getSsl
public org.xnio.ssl.XnioSsl getSsl(org.xnio.XnioWorker worker, Object annotatedEndpointInstance, URI uri)- Specified by:
getSslin interfaceWebsocketClientSslProvider
-
getSsl
public org.xnio.ssl.XnioSsl getSsl(org.xnio.XnioWorker worker, jakarta.websocket.Endpoint endpoint, jakarta.websocket.ClientEndpointConfig cec, URI uri)- Specified by:
getSslin interfaceWebsocketClientSslProvider
-
setSslContext
public static void setSslContext(SSLContext context)
-
-