inescID.revs.servers
Class AnonymizerEngine
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
inescID.revs.servers.ServerEngine
inescID.revs.servers.AnonymizerEngine
- All Implemented Interfaces:
- CommonServerInterface, ISubmission, java.rmi.Remote, java.io.Serializable
- public class AnonymizerEngine
- extends ServerEngine
- implements ISubmission
- See Also:
- Serialized Form
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 |
AnonymizerEngine(java.lang.String address,
char[] keystore_pass,
char[] key_pass)
|
AnonymizerEngine(java.lang.String address,
char[] keystore_pass,
char[] key_pass,
boolean noSSL)
|
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 |
database
DB_Anonymizer database
forward_server
java.lang.String forward_server
max_votes2forward
int max_votes2forward
max_forward_interval
int max_forward_interval
time
AnonymizerSubmission time
AnonymizerEngine
public AnonymizerEngine(java.lang.String address,
char[] keystore_pass,
char[] key_pass)
throws java.rmi.RemoteException,
java.security.KeyStoreException,
java.security.cert.CertificateException,
java.security.NoSuchAlgorithmException,
java.io.IOException,
java.security.UnrecoverableKeyException
AnonymizerEngine
public AnonymizerEngine(java.lang.String address,
char[] keystore_pass,
char[] key_pass,
boolean noSSL)
throws java.rmi.RemoteException,
java.io.IOException,
java.security.NoSuchAlgorithmException,
java.security.cert.CertificateException,
java.security.KeyStoreException,
java.io.FileNotFoundException,
java.security.UnrecoverableKeyException
setForwardServer
public void setForwardServer(java.lang.String url)
setMaxVotes2Forward
public void setMaxVotes2Forward(int max_votes)
setMaxForwardInterval
public void setMaxForwardInterval(int millis)
existsForwardServer
public boolean existsForwardServer()
updateDatabase
public void updateDatabase(java.lang.String file)
- Specified by:
updateDatabase
in interface CommonServerInterface
start
public boolean start()
- Description copied from class:
ServerEngine
- start
- Specified by:
start
in interface CommonServerInterface
- Overrides:
start
in class ServerEngine
stop
public void stop()
- Description copied from class:
ServerEngine
- stop
- Specified by:
stop
in interface CommonServerInterface
- Overrides:
stop
in class ServerEngine
init
public void init(java.lang.String database_address,
java.net.PasswordAuthentication db_authentication)
- init
- Specified by:
init
in interface CommonServerInterface
- Parameters:
database_address
- Stringdb_authentication
- PasswordAuthentication
submitVote
public Reply submitVote(int election,
byte[] vote)
- submitVote
- Specified by:
submitVote
in interface ISubmission
- Parameters:
election
- intvote
- Vote
- Returns:
- Reply
forwardVotes
public void forwardVotes()