votingSystem
Class PublicKey
java.lang.Object
votingSystem.PublicKey
- All Implemented Interfaces:
- java.io.Serializable
- public class PublicKey
- extends java.lang.Object
- implements java.io.Serializable
The class is the data structure for holding the PublicKey for the election.
- Author:
- Bent K. Onshus
- See Also:
- Serialized Form
Constructor Summary |
PublicKey(java.math.BigInteger n,
java.math.BigInteger g,
java.math.BigInteger v,
java.math.BigInteger[] vi,
int s)
Creates a new PublicKey for the election |
Method Summary |
java.math.BigInteger |
getG()
|
java.math.BigInteger |
getN()
|
java.math.BigInteger[] |
getNArray()
|
int |
getS()
|
java.math.BigInteger |
getV()
|
java.math.BigInteger[] |
getVi()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PublicKey
public PublicKey(java.math.BigInteger n,
java.math.BigInteger g,
java.math.BigInteger v,
java.math.BigInteger[] vi,
int s)
- Creates a new PublicKey for the election
- Parameters:
n
- Public value ng
- Generator g for use in the encryptionsvi
- The list of verification keys for the Servers
getG
public java.math.BigInteger getG()
getN
public java.math.BigInteger getN()
getVi
public java.math.BigInteger[] getVi()
getS
public int getS()
getNArray
public java.math.BigInteger[] getNArray()
getV
public java.math.BigInteger getV()