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, createWebSocketpublic SSLParametersWebSocketServerFactory(SSLContext sslContext, SSLParameters sslParameters)
sslContext - - can not be nullsslParameters - - can not be nullpublic SSLParametersWebSocketServerFactory(SSLContext sslContext, ExecutorService executerService, SSLParameters sslParameters)
sslContext - - can not be nullexecuterService - - can not be nullsslParameters - - can not be nullpublic ByteChannel wrapChannel(SocketChannel channel, SelectionKey key) throws IOException
WebSocketServerFactorywrapChannel in interface WebSocketServerFactorywrapChannel in class DefaultSSLWebSocketServerFactorychannel - The SocketChannel to wrapkey - a SelectionKey of an open SocketChannel.IOException - may be thrown while writing on the channelCopyright © 2021. All rights reserved.