Search in sources :

Example 1 with SSLSocketChannel2

use of org.java_websocket.SSLSocketChannel2 in project quorrabot by GloriousEggroll.

the class DefaultSSLWebSocketServerFactory method wrapChannel.

@Override
public ByteChannel wrapChannel(SocketChannel channel, SelectionKey key) throws IOException {
    SSLEngine e = sslcontext.createSSLEngine();
    e.setUseClientMode(false);
    return new SSLSocketChannel2(channel, e, exec, key);
}
Also used : SSLSocketChannel2(org.java_websocket.SSLSocketChannel2) SSLEngine(javax.net.ssl.SSLEngine)

Aggregations

SSLEngine (javax.net.ssl.SSLEngine)1 SSLSocketChannel2 (org.java_websocket.SSLSocketChannel2)1