Code example for SSLServerSocket

Methods: setNeedClientAuth

0
				BufferedReader bin = new BufferedReader(new InputStreamReader(
						in));
				String ln;
				while ((ln = bin.readLine()) != null) {
					System.out.println(ln);
					if (ln.equals("")) {
						break; 
					} 
				} 
				out.println("HTTP/1.1 200 OK");
				out.println("Cache-Control: no-cache");
				out.println("Pragma: no-cache");
				out.println("Expires: Fri, 01 Jan 1990 00:00:00 GMT");
				out.println("Content-Type: text/html; charset=UTF-8");
				out.println("Date: Tue, 01 Jul 2008 11:56:42 GMT");
				out.println("Server: BWS");
				out.println("X-Powered-By: BWS");
				out.println();
				out.println("<html><body><h1>hello world</h1></body></html>");
 
				out.flush();