Package org.mozilla.jss.tests
Class JSSE_SSLServer
- java.lang.Object
-
- org.mozilla.jss.tests.JSSE_SSLServer
-
public class JSSE_SSLServer extends java.lang.ObjectJSSE SSLServer class that acts as SSL Server
-
-
Constructor Summary
Constructors Constructor Description JSSE_SSLServer()Constructs a JSSE_SSLServer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetKeystore()Get the location of keystore file.java.lang.StringgetProvider()Get the configured provider.static voidmain(java.lang.String[] args)Main method to create the class server.voidsetKeystore(java.lang.String fconfigDir)Set the location of keystore file.voidsetProvider(java.lang.String p)Set the provider to use.voidstartSSLServer(java.lang.String[] args)Start SSLServer and accept connections.
-
-
-
Method Detail
-
setProvider
public void setProvider(java.lang.String p)
Set the provider to use.- Parameters:
p-
-
getProvider
public java.lang.String getProvider()
Get the configured provider.- Returns:
- String provider
-
setKeystore
public void setKeystore(java.lang.String fconfigDir)
Set the location of keystore file.- Parameters:
fconfigDir-
-
getKeystore
public java.lang.String getKeystore()
Get the location of keystore file.- Returns:
- String configDir
-
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.ExceptionStart SSLServer and accept connections.- Parameters:
args-- Throws:
java.lang.Exception
-
-