inescID.revs.commissioner
Class Commissioner

java.lang.Object
  extended byinescID.revs.commissioner.Commissioner

public class Commissioner
extends java.lang.Object


Field Summary
(package private)  DB_Commissioner dbcommi
           
(package private)  boolean export_elections
           
(package private)  FrameCommissioner frame_commissioner
           
(package private)  char[] key_pass
           
(package private)  char[] keystore_pass
           
(package private)  PasswordGenerator password_generator
           
 
Constructor Summary
Commissioner()
           
 
Method Summary
(package private)  void CAback_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void CAdelete_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void CAok_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void createAdministratorsFiles(Configuration configuration, java.util.Vector elections, java.util.Vector administrators, java.util.Vector[] signing_keys, java.security.interfaces.RSAPrivateKey kpri_commissioner)
           
(package private)  java.util.Vector[] createAdministratorsSigningKeys(Configuration configuration)
           
(package private)  void createAnonymizersAndCountersFiles(Configuration configuration, java.util.Vector elections, java.security.interfaces.RSAPrivateKey key)
           
(package private)  void createDistributorFile(Configuration configuration, java.util.Vector elections, java.util.Vector administrators, java.util.Vector submit_servers, java.security.interfaces.RSAPrivateKey key)
           
(package private)  void createElectionKeys(Configuration configuration, java.security.interfaces.RSAPrivateKey kpri_commissioner)
           
private  char[][] createPasswords()
           
(package private)  void CVPcancel_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void CVPok_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void EAback_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void EAdelete_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void EAok_actionPerformed(java.awt.event.ActionEvent e)
           
 void FillDB(DB_Commissioner db, boolean update)
           
(package private)  java.util.HashSet getElectionsVotersID(java.util.Vector elections)
           
private  int getVotersGroupId(java.lang.String group_string)
           
(package private)  void GMback_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void GMdelete_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void GMmanage_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void GMok_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void initialData()
           
static void main(java.lang.String[] args)
           
(package private)  void MMconfiguration_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void MMcreate_distribution_files_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void MMelections_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void MMservers_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void MMutilities_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void MMvoters_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  java.security.SignedObject readAndSignBallot(Election election, Configuration configuration, java.util.Vector administrators, java.util.Vector submit_servers, SigningTool sign, java.security.PrivateKey key)
           
(package private)  java.lang.String readBallot(Election election)
           
(package private)  java.lang.Object readObjectFromFile(java.lang.String msg, java.security.interfaces.RSAKey key)
           
(package private)  java.lang.Object readObjectFromFile(java.lang.String msg, javax.crypto.SecretKey key)
           
(package private)  void SAback_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void SAload_key_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void SAok_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void SCback_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void SCnext_actionPerformed(java.awt.event.ActionEvent e)
           
 void setFrameCommissioner(FrameCommissioner fcommi)
           
 void start()
           
 void start(java.net.PasswordAuthentication auth)
           
(package private)  void SVcancel_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void SVok_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void UTback_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void UTcreate_passwords_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void UTexport_elections_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void UTimport_adm_sig_keys_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void UTimport_elections_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void UTimport_groups_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void UTimport_voters_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  java.util.Vector verifyConfigurationData(Configuration conf)
           
(package private)  void VMback_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void VMchange_password_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void VMdelete_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void VMgroups_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void VMok_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void VPcreate_passwords_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void VPok_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void writeObject2File(java.lang.String msg, java.lang.Object obj)
           
(package private)  void writeObject2File(java.lang.String msg, java.lang.Object obj, java.security.interfaces.RSAKey key)
           
(package private)  void writeObject2File(java.lang.String msg, java.lang.Object obj, javax.crypto.SecretKey key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

frame_commissioner

FrameCommissioner frame_commissioner

dbcommi

DB_Commissioner dbcommi

password_generator

PasswordGenerator password_generator

keystore_pass

char[] keystore_pass

key_pass

char[] key_pass

export_elections

boolean export_elections
Constructor Detail

Commissioner

public Commissioner()
Method Detail

setFrameCommissioner

public void setFrameCommissioner(FrameCommissioner fcommi)

start

public void start()

start

public void start(java.net.PasswordAuthentication auth)

main

public static void main(java.lang.String[] args)

initialData

void initialData()
           throws java.lang.Exception
Throws:
java.lang.Exception

MMvoters_actionPerformed

void MMvoters_actionPerformed(java.awt.event.ActionEvent e)

MMelections_actionPerformed

void MMelections_actionPerformed(java.awt.event.ActionEvent e)

MMservers_actionPerformed

void MMservers_actionPerformed(java.awt.event.ActionEvent e)

MMconfiguration_actionPerformed

void MMconfiguration_actionPerformed(java.awt.event.ActionEvent e)

MMcreate_distribution_files_actionPerformed

void MMcreate_distribution_files_actionPerformed(java.awt.event.ActionEvent e)

MMutilities_actionPerformed

void MMutilities_actionPerformed(java.awt.event.ActionEvent e)

VPcreate_passwords_actionPerformed

void VPcreate_passwords_actionPerformed(java.awt.event.ActionEvent e)

createPasswords

private char[][] createPasswords()
                          throws java.lang.Exception
Throws:
java.lang.Exception

VPok_actionPerformed

void VPok_actionPerformed(java.awt.event.ActionEvent e)

VMok_actionPerformed

void VMok_actionPerformed(java.awt.event.ActionEvent e)

VMchange_password_actionPerformed

void VMchange_password_actionPerformed(java.awt.event.ActionEvent e)

VMdelete_actionPerformed

void VMdelete_actionPerformed(java.awt.event.ActionEvent e)

VMgroups_actionPerformed

void VMgroups_actionPerformed(java.awt.event.ActionEvent e)

VMback_actionPerformed

void VMback_actionPerformed(java.awt.event.ActionEvent e)

GMok_actionPerformed

void GMok_actionPerformed(java.awt.event.ActionEvent e)

GMmanage_actionPerformed

void GMmanage_actionPerformed(java.awt.event.ActionEvent e)

GMdelete_actionPerformed

void GMdelete_actionPerformed(java.awt.event.ActionEvent e)

GMback_actionPerformed

void GMback_actionPerformed(java.awt.event.ActionEvent e)

SVok_actionPerformed

void SVok_actionPerformed(java.awt.event.ActionEvent e)

SVcancel_actionPerformed

void SVcancel_actionPerformed(java.awt.event.ActionEvent e)

EAok_actionPerformed

void EAok_actionPerformed(java.awt.event.ActionEvent e)

EAdelete_actionPerformed

void EAdelete_actionPerformed(java.awt.event.ActionEvent e)

EAback_actionPerformed

void EAback_actionPerformed(java.awt.event.ActionEvent e)

CAback_actionPerformed

void CAback_actionPerformed(java.awt.event.ActionEvent e)

CAdelete_actionPerformed

void CAdelete_actionPerformed(java.awt.event.ActionEvent e)

CAok_actionPerformed

void CAok_actionPerformed(java.awt.event.ActionEvent e)

SAback_actionPerformed

void SAback_actionPerformed(java.awt.event.ActionEvent e)

SAload_key_actionPerformed

void SAload_key_actionPerformed(java.awt.event.ActionEvent e)

SAok_actionPerformed

void SAok_actionPerformed(java.awt.event.ActionEvent e)

SCback_actionPerformed

void SCback_actionPerformed(java.awt.event.ActionEvent e)

SCnext_actionPerformed

void SCnext_actionPerformed(java.awt.event.ActionEvent e)

UTcreate_passwords_actionPerformed

void UTcreate_passwords_actionPerformed(java.awt.event.ActionEvent e)

CVPok_actionPerformed

void CVPok_actionPerformed(java.awt.event.ActionEvent e)

UTback_actionPerformed

void UTback_actionPerformed(java.awt.event.ActionEvent e)

CVPcancel_actionPerformed

void CVPcancel_actionPerformed(java.awt.event.ActionEvent e)

UTimport_voters_actionPerformed

void UTimport_voters_actionPerformed(java.awt.event.ActionEvent e)

UTimport_groups_actionPerformed

void UTimport_groups_actionPerformed(java.awt.event.ActionEvent e)

getVotersGroupId

private int getVotersGroupId(java.lang.String group_string)

UTimport_elections_actionPerformed

void UTimport_elections_actionPerformed(java.awt.event.ActionEvent e)

UTexport_elections_actionPerformed

void UTexport_elections_actionPerformed(java.awt.event.ActionEvent e)

UTimport_adm_sig_keys_actionPerformed

void UTimport_adm_sig_keys_actionPerformed(java.awt.event.ActionEvent e)

verifyConfigurationData

java.util.Vector verifyConfigurationData(Configuration conf)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

getElectionsVotersID

java.util.HashSet getElectionsVotersID(java.util.Vector elections)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

createDistributorFile

void createDistributorFile(Configuration configuration,
                           java.util.Vector elections,
                           java.util.Vector administrators,
                           java.util.Vector submit_servers,
                           java.security.interfaces.RSAPrivateKey key)
                     throws java.lang.Exception
Throws:
java.lang.Exception

createAdministratorsFiles

void createAdministratorsFiles(Configuration configuration,
                               java.util.Vector elections,
                               java.util.Vector administrators,
                               java.util.Vector[] signing_keys,
                               java.security.interfaces.RSAPrivateKey kpri_commissioner)
                         throws java.security.NoSuchAlgorithmException,
                                java.sql.SQLException,
                                java.lang.Exception
Throws:
java.security.NoSuchAlgorithmException
java.sql.SQLException
java.lang.Exception

createAnonymizersAndCountersFiles

void createAnonymizersAndCountersFiles(Configuration configuration,
                                       java.util.Vector elections,
                                       java.security.interfaces.RSAPrivateKey key)
                                 throws java.sql.SQLException,
                                        java.lang.Exception
Throws:
java.sql.SQLException
java.lang.Exception

createElectionKeys

void createElectionKeys(Configuration configuration,
                        java.security.interfaces.RSAPrivateKey kpri_commissioner)
                  throws java.lang.Exception
Throws:
java.lang.Exception

createAdministratorsSigningKeys

java.util.Vector[] createAdministratorsSigningKeys(Configuration configuration)
                                             throws java.lang.Exception
Throws:
java.lang.Exception

readBallot

java.lang.String readBallot(Election election)
                      throws java.io.FileNotFoundException,
                             java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException

readAndSignBallot

java.security.SignedObject readAndSignBallot(Election election,
                                             Configuration configuration,
                                             java.util.Vector administrators,
                                             java.util.Vector submit_servers,
                                             SigningTool sign,
                                             java.security.PrivateKey key)
                                       throws java.io.FileNotFoundException,
                                              java.io.IOException,
                                              java.lang.Exception
Throws:
java.io.FileNotFoundException
java.io.IOException
java.lang.Exception

writeObject2File

void writeObject2File(java.lang.String msg,
                      java.lang.Object obj,
                      java.security.interfaces.RSAKey key)
                throws java.lang.Exception
Throws:
java.lang.Exception

writeObject2File

void writeObject2File(java.lang.String msg,
                      java.lang.Object obj,
                      javax.crypto.SecretKey key)
                throws java.lang.Exception
Throws:
java.lang.Exception

writeObject2File

void writeObject2File(java.lang.String msg,
                      java.lang.Object obj)
                throws java.lang.Exception
Throws:
java.lang.Exception

readObjectFromFile

java.lang.Object readObjectFromFile(java.lang.String msg,
                                    java.security.interfaces.RSAKey key)
                              throws java.lang.Exception
Throws:
java.lang.Exception

readObjectFromFile

java.lang.Object readObjectFromFile(java.lang.String msg,
                                    javax.crypto.SecretKey key)
                              throws java.lang.Exception
Throws:
java.lang.Exception

FillDB

public void FillDB(DB_Commissioner db,
                   boolean update)