You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.




org.mozilla.jss.tests
Class JSSE_SSLServer

java.lang.Object
  extended by org.mozilla.jss.tests.JSSE_SSLServer

public class JSSE_SSLServer
extends java.lang.Object

JSSE SSLServer class that acts as SSL Server


Constructor Summary
JSSE_SSLServer()
          Constructs a JSSE_SSLServer.
 
Method Summary
static java.lang.String getKeystoreLoc()
          Get the location of keystore file.
static void main(java.lang.String[] args)
          Main method to create the class server.
static void setKeystoreLoc(java.lang.String fKeystoreLoc)
          Set the location of keystore file.
 void startSSLServer(java.lang.String[] args)
          Start SSLServer and accept connections.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSSE_SSLServer

public JSSE_SSLServer()
               throws java.io.IOException
Constructs a JSSE_SSLServer.

Throws:
java.io.IOException
Method Detail

setKeystoreLoc

public static void setKeystoreLoc(java.lang.String fKeystoreLoc)
Set the location of keystore file.

Parameters:
String - fKeystoreLoc

getKeystoreLoc

public static java.lang.String getKeystoreLoc()
Get the location of keystore file.

Returns:
String keystoreLoc

main

public static void main(java.lang.String[] args)
Main method to create the class server. This takes one command line arguments, the port on which the server accepts requests.


startSSLServer

public void startSSLServer(java.lang.String[] args)
                    throws java.lang.Exception
Start SSLServer and accept connections.

Parameters:
args[] -
Throws:
java.lang.Exception