|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectea.ElectionAuthority
This class resembles the ElectionAuthority of the Election. This class will handle the decryption of the results when enough decrypted shares are acquired from the Servers
Constructor Summary | |
ElectionAuthority(PublicKey pk,
ElectionProperties ep,
boolean trustDecryptionServers)
Creates a new ElectionAuthority |
|
ElectionAuthority(PublicKey pk,
ElectionProperties ep,
BulletinBoard bb,
boolean trustDecryptionServers)
Creates a new ElectionAuthority |
Method Summary | |
java.math.BigInteger[] |
combineShares(int type)
Combines the shares into a result. |
java.math.BigInteger |
shareCombine(DecryptedShare[] dsList)
The method for combining the DecryptedShare's acquired from the decryption Servers |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ElectionAuthority(PublicKey pk, ElectionProperties ep, BulletinBoard bb, boolean trustDecryptionServers)
pk
- The PublicKey for this electionep
- The ElectionProperties for this electionpublic ElectionAuthority(PublicKey pk, ElectionProperties ep, boolean trustDecryptionServers)
pk
- The PublicKey for this electionep
- The ElectionProperties for this electionMethod Detail |
public java.math.BigInteger[] combineShares(int type) throws java.rmi.RemoteException, InsufficientSharesException
type
- The election type. 0 if 1-out of L, 1 if k-out-of-L, 2 if 1-out-of-L Binary, 3 if k-out-of-L Binary.
java.rmi.RemoteException
InsufficientSharesException
public java.math.BigInteger shareCombine(DecryptedShare[] dsList) throws InsufficientSharesException
dsList
- Array of DecryptedShare's
InsufficientSharesException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |