public class CustomSSLWebSocketServerFactory extends DefaultSSLWebSocketServerFactory
exec, sslcontext| Constructor and Description |
|---|
CustomSSLWebSocketServerFactory(SSLContext sslContext,
ExecutorService executerService,
String[] enabledProtocols,
String[] enabledCiphersuites)
New CustomSSLWebSocketServerFactory configured to only support given protocols and given cipher suites.
|
CustomSSLWebSocketServerFactory(SSLContext sslContext,
String[] enabledProtocols,
String[] enabledCiphersuites)
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 CustomSSLWebSocketServerFactory(SSLContext sslContext, String[] enabledProtocols, String[] enabledCiphersuites)
sslContext - - can not be nullenabledProtocols - - only these protocols are enabled, when null default settings will be used.enabledCiphersuites - - only these cipher suites are enabled, when null default settings will be used.public CustomSSLWebSocketServerFactory(SSLContext sslContext, ExecutorService executerService, String[] enabledProtocols, String[] enabledCiphersuites)
sslContext - - can not be nullexecuterService - - can not be nullenabledProtocols - - only these protocols are enabled, when null default settings will be used.enabledCiphersuites - - only these cipher suites are enabled, when null default settings will be used.public 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 © 2018. All rights reserved.