org.mozilla.jss.tests

Class 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

String
getKeystore()
Get the location of keystore file.
String
getProvider()
Get the configured provider.
static void
main(args[] )
Main method to create the class server.
void
setKeystore(String fconfigDir)
Set the location of keystore file.
void
setProvider(String p)
Set the provider to use.
void
startSSLServer(String[] args)
Start SSLServer and accept connections.

Constructor Details

JSSE_SSLServer

public JSSE_SSLServer()
            throws IOException
Constructs a JSSE_SSLServer.

Method Details

getKeystore

public String getKeystore()
Get the location of keystore file.
Returns:
String configDir

getProvider

public String getProvider()
Get the configured provider.
Returns:
String provider

main

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

setKeystore

public void setKeystore(String fconfigDir)
Set the location of keystore file.
Parameters:

setProvider

public void setProvider(String p)
Set the provider to use.
Parameters:

startSSLServer

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