how to do ssl socket programming

前端 未结 3 1326
情话喂你
情话喂你 2020-12-06 02:55

I am doing socket communication through follwing IP address it working but no i want to do communication in ssl mode but how can I change InetAddress serverAddr = Ine

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-06 03:12

    Java has the SSLSocket class.

    http://download.oracle.com/javase/1.4.2/docs/api/javax/net/ssl/SSLSocket.html

    Hope this helps, haven't used it myself (yet).

提交回复
热议问题