org.abstracthorizon.danube.service.server
Class MultiThreadServerSSLSocketService

java.lang.Object
  extended by org.abstracthorizon.danube.service.Service
      extended by org.abstracthorizon.danube.service.server.ServerService
          extended by org.abstracthorizon.danube.service.server.MultiThreadServerService
              extended by org.abstracthorizon.danube.service.server.MultiThreadServerSocketService
                  extended by org.abstracthorizon.danube.service.server.MultiThreadServerSSLSocketService
All Implemented Interfaces:
Runnable

public class MultiThreadServerSSLSocketService
extends MultiThreadServerSocketService


Nested Class Summary
 
Nested classes/interfaces inherited from class org.abstracthorizon.danube.service.server.MultiThreadServerService
MultiThreadServerService.ConnectionHandlerThread
 
Field Summary
protected  String keystorePassword
          Keystore password
protected  URL keystoreURL
          Keystore file name
 
Fields inherited from class org.abstracthorizon.danube.service.server.MultiThreadServerSocketService
newSocketTimeout, serverSocket, serverSocketTimeout
 
Fields inherited from class org.abstracthorizon.danube.service.server.MultiThreadServerService
activeConnections, executor, graceFinishPeriod
 
Fields inherited from class org.abstracthorizon.danube.service.server.ServerService
connectionHandler, socketAddress
 
Fields inherited from class org.abstracthorizon.danube.service.Service
DESTROYED, INITIALIZED, listeners, logger, name, NOT_INITIALIZED, RUNNING, SERVICE_STATE_NAMES, STARTED, STOPPED, STOPPING, stopService
 
Constructor Summary
MultiThreadServerSSLSocketService()
          Default constructor
 
Method Summary
protected  void createServerSocket()
          Creates server socket
 File getKeyStoreFile()
          Returns keystore file
protected  InputStream getKeyStoreInputStream()
          Returns keystore as input stream.
 String getKeyStorePassword()
          Returns keystore password
 URL getKeyStoreURL()
          Returns keystore filename
 void setKeyStoreFile(File file)
          Sets keystore file
 void setKeyStorePassword(String passPhrase)
          Stores keystore password
 void setKeyStoreURL(URL url)
          Sets keystore URL
 
Methods inherited from class org.abstracthorizon.danube.service.server.MultiThreadServerSocketService
create, createSocketConnection, destroy, destroyServerSocket, getNewSocketTimeout, getServerSocketTimeout, processConnection, processConnections, setNewSocketTimeout, setServerSocketTimeout
 
Methods inherited from class org.abstracthorizon.danube.service.server.MultiThreadServerService
getActiveConnections, getExecutor, getGraceFinishPeriod, getNumberOfActiveConnections, run, setExecutor, setGraceFinishPeriod, start, stop
 
Methods inherited from class org.abstracthorizon.danube.service.server.ServerService
getAddress, getConnectionHandler, getPort, getSocketAddress, setAddress, setConnectionHandler, setPort, setSocketAddress
 
Methods inherited from class org.abstracthorizon.danube.service.Service
addListener, changeState, getName, getState, getStateName, removeListener, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keystorePassword

protected String keystorePassword
Keystore password


keystoreURL

protected URL keystoreURL
Keystore file name

Constructor Detail

MultiThreadServerSSLSocketService

public MultiThreadServerSSLSocketService()
Default constructor

Method Detail

createServerSocket

protected void createServerSocket()
                           throws ServiceException
Creates server socket

Overrides:
createServerSocket in class MultiThreadServerSocketService
Throws:
ServiceException

setKeyStorePassword

public void setKeyStorePassword(String passPhrase)
Stores keystore password

Parameters:
passPhrase - keystore password

getKeyStorePassword

public String getKeyStorePassword()
Returns keystore password

Returns:
keystore password

setKeyStoreURL

public void setKeyStoreURL(URL url)
Sets keystore URL

Parameters:
filename - keystore URL

getKeyStoreURL

public URL getKeyStoreURL()
Returns keystore filename

Returns:
keystore filename

setKeyStoreFile

public void setKeyStoreFile(File file)
                     throws IOException
Sets keystore file

Parameters:
filename - keystore file
Throws:
IOException

getKeyStoreFile

public File getKeyStoreFile()
Returns keystore file

Returns:
keystore file

getKeyStoreInputStream

protected InputStream getKeyStoreInputStream()
                                      throws IOException
Returns keystore as input stream.

Returns:
keystore as input stream
Throws:
IOException


Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.