/ Published in: Java
Create a Socket that uses SSL :D
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
import javax.net.ssl.*; import javax.net.*; import java.net.*; import java.io.*; class ... static SocketFactory sockfact; public static ... try { int port = 995; SocketFactory sockfactory = SSLSocketFactory.getDefault(); //Send Data out.write("data "); out.flush(); //recv Data