de.tu_darmstadt.sp.example
Class SSLServer

java.lang.Object
  |
  +--de.tu_darmstadt.sp.example.SSLServer

public class SSLServer
extends java.lang.Object

Class SSLServer is a test example showing how to setup the environment, create and use a SSLeayServerSocket.

The program expects ca faile, cert, and key files to be specified either through system properties or via environment variables. It also expects one argument on the ocommandline, the port to listen at;

Using this information, it creates a server socket which acceptes one connection. All available SSL information is displayed for the accepted connection.

Version:
$Revision: 1.5 $
Author:
Andrei Popovici
See Also:
SSLeayServerSocket, SSLeayServerSocketFactory

Constructor Summary
SSLServer()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSLServer

public SSLServer()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception