org.mozilla.jss.tests

Class JSSE_SSLServer

public class JSSE_SSLServer extends Object

JSSE SSLServer class that acts as SSL Server
Constructor Summary
JSSE_SSLServer()
Constructs a JSSE_SSLServer.
Method Summary
StringgetKeystore()
Get the location of keystore file.
StringgetProvider()
Get the configured provider.
static voidmain(String[] args)
Main method to create the class server.
voidsetKeystore(String fconfigDir)
Set the location of keystore file.
voidsetProvider(String p)
Set the provider to use.
voidstartSSLServer(String[] args)
Start SSLServer and accept connections.

Constructor Detail

JSSE_SSLServer

public JSSE_SSLServer()
Constructs a JSSE_SSLServer.

Method Detail

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(String[] 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: String fconfigDir

setProvider

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

Parameters: String p

startSSLServer

public void startSSLServer(String[] args)
Start SSLServer and accept connections.

Parameters: args[]