public class SSLParametersWebSocketServerFactory extends DefaultSSLWebSocketServerFactory
exec, sslcontext
Constructor and Description |
---|
SSLParametersWebSocketServerFactory(SSLContext sslContext,
ExecutorService executerService,
SSLParameters sslParameters)
New CustomSSLWebSocketServerFactory configured to only support given protocols and given cipher
suites.
|
SSLParametersWebSocketServerFactory(SSLContext sslContext,
SSLParameters sslParameters)
New CustomSSLWebSocketServerFactory configured to only support given protocols and given cipher
suites.
|
Modifier and Type | Method and Description |
---|---|
ByteChannel |
wrapChannel(SocketChannel channel,
SelectionKey key)
Allows to wrap the SocketChannel( key.channel() ) to insert a protocol layer( like ssl or proxy
authentication) beyond the ws layer.
|
close, createWebSocket, createWebSocket
public SSLParametersWebSocketServerFactory(SSLContext sslContext, SSLParameters sslParameters)
sslContext
- - can not be null
sslParameters
- - can not be null
public SSLParametersWebSocketServerFactory(SSLContext sslContext, ExecutorService executerService, SSLParameters sslParameters)
sslContext
- - can not be null
executerService
- - can not be null
sslParameters
- - can not be null
public ByteChannel wrapChannel(SocketChannel channel, SelectionKey key) throws IOException
WebSocketServerFactory
wrapChannel
in interface WebSocketServerFactory
wrapChannel
in class DefaultSSLWebSocketServerFactory
channel
- The SocketChannel to wrapkey
- a SelectionKey of an open SocketChannel.IOException
- may be thrown while writing on the channelCopyright © 2021. All rights reserved.