Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Java: encrypt web traffic using Java Secure Socket Extension

Java: encrypt web traffic using Java Secure Socket Extension
{filelink=262}

import java.net.ServerSocket;
import javax.net.ssl.SSLServerSocketFactory;
public class SSLJSSEServer {
    static private ServerSocket getServerSocket(int port) throws Exception
    {
        SSLServerSocketFactory ssf = (SSLServerSocketFactory)SSLServerSocketFactory.getDefault(  );
        return ssf.createServerSocket(port);
    }
    public static void main(String[] args) throws Exception
    {
        // run secure socket
        ServerSocket server=getServerSocket(80);
    }
}

Users who found this page were searching for:

  • translucentcomponent
  • python find address
  • perl csv dbi

No comments yet.

Leave a Comment