inescID.revs.voter
Class VoterEngine
java.lang.Object
inescID.revs.voter.VoterEngine
- All Implemented Interfaces:
- IVoterEngine
- public class VoterEngine
- extends java.lang.Object
- implements IVoterEngine
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
VoterEngine
public VoterEngine(java.lang.String ballot)
VoterEngine
public VoterEngine()
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)