public class CustomSSLWebSocketServerFactory extends DefaultSSLWebSocketServerFactory
exec, sslcontext| Constructor and Description |
|---|
CustomSSLWebSocketServerFactory(javax.net.ssl.SSLContext sslContext,
java.util.concurrent.ExecutorService executerService,
java.lang.String[] enabledProtocols,
java.lang.String[] enabledCiphersuites)
New CustomSSLWebSocketServerFactory configured to only support given protocols and given cipher suites.
|
CustomSSLWebSocketServerFactory(javax.net.ssl.SSLContext sslContext,
java.lang.String[] enabledProtocols,
java.lang.String[] enabledCiphersuites)
New CustomSSLWebSocketServerFactory configured to only support given protocols and given cipher suites.
|
| Modifier and Type | Method and Description |
|---|---|
java.nio.channels.ByteChannel |
wrapChannel(java.nio.channels.SocketChannel channel,
java.nio.channels.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(javax.net.ssl.SSLContext sslContext,
java.lang.String[] enabledProtocols,
java.lang.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(javax.net.ssl.SSLContext sslContext,
java.util.concurrent.ExecutorService executerService,
java.lang.String[] enabledProtocols,
java.lang.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 java.nio.channels.ByteChannel wrapChannel(java.nio.channels.SocketChannel channel,
java.nio.channels.SelectionKey key)
throws java.io.IOException
WebSocketServerFactorywrapChannel in interface WebSocketServerFactorywrapChannel in class DefaultSSLWebSocketServerFactorychannel - The SocketChannel to wrapkey - a SelectionKey of an open SocketChannel.java.io.IOException - may be thrown while writing on the channel