SSL and SocketChannel

后端 未结 4 1404
猫巷女王i
猫巷女王i 2021-02-02 00:54

Ideally, I only need a simple SSLSocketChannel.

I already have a component that reads and writes message over ordinary SocketChannel, but for

4条回答
  •  旧巷少年郎
    2021-02-02 01:23

    Jetty has an NIO SSL implementation for their server: SslSelectorChannelConnector. You might want to peek at it for details on what its doing.

    There is also an old (but decent) article from O'Reilly that explains the details about NIO + SSL along with example code.

提交回复
热议问题