Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CODEX_Server::ShareCallbackBase< _ShareType, _OneWay > Class Template Reference

This base class defines the interface for share callbacks. More...

#include <ShareCallback.h>

Inheritance diagram for CODEX_Server::ShareCallbackBase< _ShareType, _OneWay >:

Inheritance graph
[legend]
List of all members.

Public Types

typedef _ShareType ShareType
 Export the type of the sharing.
typedef _OneWay OneWay
 Export the type of the one-way function.
typedef CODEX_VSS::LabeledShare<
ShareType, OneWay
LSType
 Shorthand for the type of a labeled sharing.
typedef CODEX_VSS::ShareLabel<
ShareType, OneWay
LabelType
 Shorthand for the type of a share label.

Public Member Functions

virtual ~ShareCallbackBase ()
 Virtual destructor.
virtual const LSTypeoperator() (const LabelType &label, unsigned int server) const =0
 Get the sharing for a specified label.

Detailed Description

template<class _ShareType, class _OneWay>
class CODEX_Server::ShareCallbackBase< _ShareType, _OneWay >

This base class defines the interface for share callbacks.

ServerState uses these callbacks to request specific sharings of a secret, allowing modules to set their own callbacks for sharings that they control.

Definition at line 33 of file ShareCallback.h.


Member Function Documentation

template<class _ShareType, class _OneWay>
virtual const LSType& CODEX_Server::ShareCallbackBase< _ShareType, _OneWay >::operator() const LabelType label,
unsigned int  server
const [pure virtual]
 

Get the sharing for a specified label.

This method should be implemented by a derived class.

Parameters:
label The label of the sharing to retrieve.
server The requesting server.
Returns:
The corresponding labeled sharing.

Implemented in CODEX_APSS::APSSShareCallback, and CODEX_Server::DefaultShareCallback< _ShareType, _OneWay >.


The documentation for this class was generated from the following file:
Generated on Fri May 6 17:42:47 2005 for COrnell Data EXchange (CODEX) by  doxygen 1.4.1