inescID.revs.servers
Class ServerEngine

java.lang.Object
  extended byjava.rmi.server.RemoteObject
      extended byjava.rmi.server.RemoteServer
          extended byjava.rmi.server.UnicastRemoteObject
              extended byinescID.revs.servers.ServerEngine
All Implemented Interfaces:
CommonServerInterface, java.rmi.Remote, java.io.Serializable
Direct Known Subclasses:
AdministratorEngine, AnonymizerEngine, CounterEngine, DistributorEngine

public abstract class ServerEngine
extends java.rmi.server.UnicastRemoteObject
implements CommonServerInterface

See Also:
Serialized Form

Field Summary
(package private)  java.security.interfaces.RSAPublicKey commissioner_key
           
(package private)  CommonDatabase db_alias
           
(package private)  KeyStoreTool kst
           
(package private)  java.lang.String server_address
           
(package private)  java.security.interfaces.RSAPrivateKey server_key
           
 
Fields inherited from class java.rmi.server.UnicastRemoteObject
 
Fields inherited from class java.rmi.server.RemoteServer
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
ServerEngine(java.lang.String address, char[] keystore_pass, char[] key_pass)
           
ServerEngine(java.lang.String address, char[] keystore_pass, char[] key_pass, boolean noSSL)
           
 
Method Summary
(package private)  void configure_server(java.lang.String address, char[] keystore_pass, char[] key_pass)
           
 void createDatabase()
          createDatabase
 void deleteDatabase()
          deleteDatabase
 void redoDatabase()
          redoDatabase
 boolean start()
          start
 void stop()
          stop
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface inescID.revs.servers.CommonServerInterface
init, updateDatabase
 

Field Detail

server_address

java.lang.String server_address

kst

KeyStoreTool kst

server_key

java.security.interfaces.RSAPrivateKey server_key

commissioner_key

java.security.interfaces.RSAPublicKey commissioner_key

db_alias

CommonDatabase db_alias
Constructor Detail

ServerEngine

public ServerEngine(java.lang.String address,
                    char[] keystore_pass,
                    char[] key_pass)
             throws java.rmi.RemoteException,
                    java.io.IOException,
                    java.security.NoSuchAlgorithmException,
                    java.security.cert.CertificateException,
                    java.security.KeyStoreException,
                    java.io.FileNotFoundException,
                    java.security.UnrecoverableKeyException,
                    java.security.KeyStoreException,
                    java.security.cert.CertificateException,
                    java.security.NoSuchAlgorithmException,
                    java.io.IOException

ServerEngine

public ServerEngine(java.lang.String address,
                    char[] keystore_pass,
                    char[] key_pass,
                    boolean noSSL)
             throws java.rmi.RemoteException,
                    java.security.KeyStoreException,
                    java.security.cert.CertificateException,
                    java.security.NoSuchAlgorithmException,
                    java.io.IOException,
                    java.security.UnrecoverableKeyException,
                    java.security.KeyStoreException,
                    java.security.cert.CertificateException,
                    java.security.NoSuchAlgorithmException,
                    java.io.IOException
Method Detail

configure_server

void configure_server(java.lang.String address,
                      char[] keystore_pass,
                      char[] key_pass)
                throws java.io.IOException,
                       java.security.NoSuchAlgorithmException,
                       java.security.cert.CertificateException,
                       java.security.KeyStoreException,
                       java.io.FileNotFoundException,
                       java.security.KeyStoreException,
                       java.security.NoSuchAlgorithmException,
                       java.security.UnrecoverableKeyException
Throws:
java.io.IOException
java.security.NoSuchAlgorithmException
java.security.cert.CertificateException
java.security.KeyStoreException
java.io.FileNotFoundException
java.security.UnrecoverableKeyException

createDatabase

public void createDatabase()
createDatabase

Specified by:
createDatabase in interface CommonServerInterface

deleteDatabase

public void deleteDatabase()
deleteDatabase

Specified by:
deleteDatabase in interface CommonServerInterface

redoDatabase

public void redoDatabase()
redoDatabase

Specified by:
redoDatabase in interface CommonServerInterface

start

public boolean start()
start

Specified by:
start in interface CommonServerInterface

stop

public void stop()
stop

Specified by:
stop in interface CommonServerInterface