FileDocCategorySizeDatePackage
JSSEWebServer0.javaAPI DocExample911Mon Mar 08 21:59:36 GMT 2004None

JSSEWebServer0

public class JSSEWebServer0 extends WebServer0
JSSEWebServer - subclass trivial WebServer0 to make it use SSL.
version
$Id: JSSEWebServer0.java,v 1.1 2004/03/09 03:59:36 ian Exp $

Fields Summary
public static final int
HTTPS
Constructors Summary
Methods Summary
protected java.net.ServerSocketgetServerSocket(int port)
Get an HTTPS ServerSocket using JSSE.

see
WebServer0#getServerSocket(int)
throws
ClassNotFoundException if the SecurityProvider cannot be instantiated.

		
		SSLServerSocketFactory ssf = (SSLServerSocketFactory)SSLServerSocketFactory.getDefault();
		
		return ssf.createServerSocket(port);
	
public static voidmain(java.lang.String[] args)

	
	       
		System.out.println("DarwinSys JSSE Server 0.0 starting...");
		JSSEWebServer0 w = new JSSEWebServer0();
		w.runServer(HTTPS);		// never returns!!