remoteInterfaces
Interface ElectionServer

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
ElectionServer_Impl

public interface ElectionServer
extends java.rmi.Remote

The interface needed for using the remote object ElectionServer holding the PublicKey, the KeyShares and the ElectionProperties of the election

Author:
bent

Method Summary
 ElectionProperties getElectionProperties()
           
 KeyShare getKeyShare()
          Assigns an id to the decryption server, and returns the KeyShare
 int getNoOfDecryptionServers()
           
 int getNoOfVoters()
           
 PublicKey getPublicKey()
           
 int getVoterId()
          Gives an id to a voter
 

Method Detail

getElectionProperties

public ElectionProperties getElectionProperties()
                                         throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getPublicKey

public PublicKey getPublicKey()
                       throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getKeyShare

public KeyShare getKeyShare()
                     throws java.rmi.RemoteException
Assigns an id to the decryption server, and returns the KeyShare

Throws:
java.rmi.RemoteException

getVoterId

public int getVoterId()
               throws java.rmi.RemoteException
Gives an id to a voter

Returns:
The id
Throws:
java.rmi.RemoteException

getNoOfVoters

public int getNoOfVoters()
                  throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getNoOfDecryptionServers

public int getNoOfDecryptionServers()
                             throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException