cgl.narada.transport.ssl
Class ControlServer
java.lang.Object
java.lang.Thread
cgl.narada.transport.ssl.ControlServer
- All Implemented Interfaces:
- Runnable
public class ControlServer
- extends Thread
This is SSL server side control program. Its only purpose is to provide peer
its certificate. Client of this class can call close() method to close the
socket after getting it. Modified by HG.
- Version:
- 1.0
|
Constructor Summary |
ControlServer(int port)
Benefit: No need to concern if port provided is valid or not Obligation:
Set up server socket; Generate keys and certficate |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
ControlServer
public ControlServer(int port)
throws SSLControlException
- Benefit: No need to concern if port provided is valid or not Obligation:
Set up server socket; Generate keys and certficate
- Throws:
SSLControlException
getControlServerPort
public final int getControlServerPort()
- Returns:
- Returns the controlServerPort.
run
public void run()
- Specified by:
run in interface Runnable- Overrides:
run in class Thread
close
public void close()
throws SSLControlException
- Close both Socket and ServerSocket
- Throws:
SSLControlException
For comments and suggestions please send
e-mail to
The NaradaBrokering Project