inescID.revs.voter
Class VoterEngine

java.lang.Object
  extended byinescID.revs.voter.VoterEngine
All Implemented Interfaces:
IVoterEngine

public class VoterEngine
extends java.lang.Object
implements IVoterEngine


Field Summary
(package private) static int AUTHENTICATION
           
(package private)  Ballot ballot
           
(package private) static int BALLOT_VIEW
           
(package private)  RSABlindSignature blind_singature_engine
           
(package private)  java.security.interfaces.RSAPublicKey commissioner_key
           
private  java.lang.String demo_ballot
           
private  boolean demo_mode
           
(package private)  Server distributor
           
(package private)  java.util.Vector distributors
           
(package private)  int election_index
           
(package private) static int ELECTION_LIST
           
(package private)  java.util.Vector elections
           
(package private)  java.util.Vector elections_id_description
           
(package private)  EncryptionTool encrypt
           
(package private)  FileEncryptionTool fet
           
(package private)  FrameVoter frame_voter
           
(package private)  KeyStoreTool kst
           
(package private)  boolean packFrame
           
(package private)  REVSParser parser
           
(package private)  PasswordGenerator pass_gen
           
(package private)  byte[][] passwords
           
(package private)  java.lang.String report
           
(package private) static int REPORT
           
(package private) static int REQUIRE_SIGNTURES_NO_STATE
           
(package private) static int REQUIRE_SIGNTURES_WITH_STATE
           
(package private)  boolean resume_voting
           
(package private)  boolean SAVE_STATE
           
(package private)  SigningTool sign
           
(package private)  int state
           
(package private) static int SUBMIT_BEFORE_SINGATURES_STATE
           
(package private) static int SUBMIT_NO_STATE
           
(package private) static int SUBMIT_WITH_SIGNATURES_STATE
           
(package private)  int voter
           
(package private) static int WELCOME
           
 
Constructor Summary
VoterEngine()
           
VoterEngine(java.lang.String ballot)
           
 
Method Summary
 void cancel_actionPerformed(java.awt.event.ActionEvent e)
           
private  void createPasswords(char[][] passwords)
           
 void elections_actionPerformed(java.awt.event.ActionEvent e)
           
 boolean getBallot(int election)
           
private  javax.crypto.SecretKey getStatePassword()
           
 void jMenuItemResumeVoting_actionPerformed(java.awt.event.ActionEvent e)
           
static void main(java.lang.String[] args)
           
 void ok_actionPerformed(java.awt.event.ActionEvent e)
           
protected  boolean readAuthentication()
           
 void resumeVoting()
           
 void saveState(VoteState state)
           
private  void start()
           
 boolean submitVote(VoteState vote_state)
           
 boolean verifyVoter()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WELCOME

static final int WELCOME
See Also:
Constant Field Values

AUTHENTICATION

static final int AUTHENTICATION
See Also:
Constant Field Values

ELECTION_LIST

static final int ELECTION_LIST
See Also:
Constant Field Values

BALLOT_VIEW

static final int BALLOT_VIEW
See Also:
Constant Field Values

REQUIRE_SIGNTURES_NO_STATE

static final int REQUIRE_SIGNTURES_NO_STATE
See Also:
Constant Field Values

REQUIRE_SIGNTURES_WITH_STATE

static final int REQUIRE_SIGNTURES_WITH_STATE
See Also:
Constant Field Values

SUBMIT_NO_STATE

static final int SUBMIT_NO_STATE
See Also:
Constant Field Values

SUBMIT_WITH_SIGNATURES_STATE

static final int SUBMIT_WITH_SIGNATURES_STATE
See Also:
Constant Field Values

SUBMIT_BEFORE_SINGATURES_STATE

static final int SUBMIT_BEFORE_SINGATURES_STATE
See Also:
Constant Field Values

REPORT

static final int REPORT
See Also:
Constant Field Values

demo_mode

private boolean demo_mode

demo_ballot

private java.lang.String demo_ballot

state

int state

elections

java.util.Vector elections

elections_id_description

java.util.Vector elections_id_description

election_index

int election_index

voter

int voter

passwords

byte[][] passwords

SAVE_STATE

boolean SAVE_STATE

commissioner_key

java.security.interfaces.RSAPublicKey commissioner_key

pass_gen

PasswordGenerator pass_gen

sign

SigningTool sign

parser

REVSParser parser

blind_singature_engine

RSABlindSignature blind_singature_engine

encrypt

EncryptionTool encrypt

kst

KeyStoreTool kst

ballot

Ballot ballot

report

java.lang.String report

frame_voter

FrameVoter frame_voter

packFrame

boolean packFrame

resume_voting

boolean resume_voting

fet

FileEncryptionTool fet

distributors

java.util.Vector distributors

distributor

Server distributor
Constructor Detail

VoterEngine

public VoterEngine(java.lang.String ballot)

VoterEngine

public VoterEngine()
Method Detail

start

private void start()

elections_actionPerformed

public void elections_actionPerformed(java.awt.event.ActionEvent e)
Specified by:
elections_actionPerformed in interface IVoterEngine

ok_actionPerformed

public void ok_actionPerformed(java.awt.event.ActionEvent e)
Specified by:
ok_actionPerformed in interface IVoterEngine

createPasswords

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

readAuthentication

protected boolean readAuthentication()

verifyVoter

public boolean verifyVoter()
Specified by:
verifyVoter in interface IVoterEngine

getBallot

public boolean getBallot(int election)
Specified by:
getBallot in interface IVoterEngine

submitVote

public boolean submitVote(VoteState vote_state)
Specified by:
submitVote in interface IVoterEngine

getStatePassword

private javax.crypto.SecretKey getStatePassword()
                                         throws java.lang.Exception
Throws:
java.lang.Exception

saveState

public void saveState(VoteState state)
Specified by:
saveState in interface IVoterEngine

resumeVoting

public void resumeVoting()
Specified by:
resumeVoting in interface IVoterEngine

cancel_actionPerformed

public void cancel_actionPerformed(java.awt.event.ActionEvent e)
Specified by:
cancel_actionPerformed in interface IVoterEngine

jMenuItemResumeVoting_actionPerformed

public void jMenuItemResumeVoting_actionPerformed(java.awt.event.ActionEvent e)
Specified by:
jMenuItemResumeVoting_actionPerformed in interface IVoterEngine

main

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