cgl.narada.transport.ssl
Class ControlServer

java.lang.Object
  extended by java.lang.Thread
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
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
 
Method Summary
 void close()
          Close both Socket and ServerSocket
 int getControlServerPort()
           
 void run()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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
Method Detail

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