org.mozilla.jss.tests
Class JSSE_SSLServer
java.lang.Object
org.mozilla.jss.tests.JSSE_SSLServer
public class JSSE_SSLServer
- extends java.lang.Object
JSSE SSLServer class that acts as SSL Server
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 |
JSSE_SSLServer
public JSSE_SSLServer()
throws java.io.IOException
- Constructs a JSSE_SSLServer.
- Throws:
java.io.IOException
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