votingSystem
Class Vote

java.lang.Object
  extended byvotingSystem.Vote
All Implemented Interfaces:
java.io.Serializable

public class Vote
extends java.lang.Object
implements java.io.Serializable

Class for holding a Vote and its zero-knowledge proof of correctness

Author:
bent
See Also:
Serialized Form

Constructor Summary
Vote(java.math.BigInteger _vote, java.math.BigInteger[] _a, java.math.BigInteger _challenge, java.math.BigInteger[] _z, java.math.BigInteger[] _e, int id)
          Creates a new vote
 
Method Summary
 java.math.BigInteger[] getA()
           
 java.math.BigInteger getChallenge()
           
 java.math.BigInteger[] getE()
           
 int getId()
           
 java.math.BigInteger getVote()
           
 java.math.BigInteger[] getZ()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Vote

public Vote(java.math.BigInteger _vote,
            java.math.BigInteger[] _a,
            java.math.BigInteger _challenge,
            java.math.BigInteger[] _z,
            java.math.BigInteger[] _e,
            int id)
Creates a new vote

Parameters:
_vote - The encrypted vote
_a - Part of the zero-knowledge proof
_challenge - The challenge in the zero-knowledge proof
_z - Part of the zero-knowledge proof
_e -
id - The voter's id
Method Detail

toString

public java.lang.String toString()

getA

public java.math.BigInteger[] getA()

getChallenge

public java.math.BigInteger getChallenge()

getE

public java.math.BigInteger[] getE()

getVote

public java.math.BigInteger getVote()

getZ

public java.math.BigInteger[] getZ()

getId

public int getId()