Package io.undertow.websockets
Class DefaultWebSocketClientSslProvider
java.lang.Object
io.undertow.websockets.DefaultWebSocketClientSslProvider
- All Implemented Interfaces:
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSsl(io.netty.channel.EventLoopGroup worker, jakarta.websocket.Endpoint endpoint, jakarta.websocket.ClientEndpointConfig cec, URI uri) static voidsetSslContext(SSLContext context)
-
Field Details
-
SSL_CONTEXT
- See Also:
-
-
Constructor Details
-
DefaultWebSocketClientSslProvider
public DefaultWebSocketClientSslProvider()
-
-
Method Details
-
getSsl
public SSLContext getSsl(io.netty.channel.EventLoopGroup worker, Class<?> annotatedEndpoint, URI uri) - Specified by:
getSslin interfaceWebsocketClientSslProvider
-
getSsl
public SSLContext getSsl(io.netty.channel.EventLoopGroup worker, Object annotatedEndpointInstance, URI uri) - Specified by:
getSslin interfaceWebsocketClientSslProvider
-
getSsl
public SSLContext getSsl(io.netty.channel.EventLoopGroup worker, jakarta.websocket.Endpoint endpoint, jakarta.websocket.ClientEndpointConfig cec, URI uri) - Specified by:
getSslin interfaceWebsocketClientSslProvider
-
setSslContext
-