How do I secure a Java SocketChannel
, ServerSocketChannel
or, perhaps even, a DatagramChannel
with TLS?
I know that there are some frameworks (#1 #2) that advertise to be able, but I want to know if it is possible to achieve this with the pure Java standard library alone.
SSLSocket
s, not NIO. – Bogusz