Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   Related Pages  

CODEX_Client::SignedMessage< MT, ST > Class Template Reference

This templated class defines a basic signed message. More...

#include <Message.h>

Inheritance diagram for CODEX_Client::SignedMessage< MT, ST >:

Inheritance graph
[legend]
Collaboration diagram for CODEX_Client::SignedMessage< MT, ST >:

Collaboration graph
[legend]
List of all members.

Public Methods

 SignedMessage ()
 Default constructor, for creating an object to be unmarshalled.

 SignedMessage (const MT &message, ST signature)
 Create a SignedMessage from a message and a signature.

 SignedMessage (const SignedMessage &aMessage)
 Create a SignedMessage from another signed message.

virtual ~SignedMessage ()
 Virtual destructor.

void operator= (const SignedMessage &aMessage)
 Assignment operator.

const MT & message () const
 
Returns:
A const reference to the message.


const ST & signature () const
 
Returns:
A const reference to the signature.


int marshal (unsigned char **pp) const
 Serialize the object.

void * unmarshal (void *bogus, unsigned char **pp, long length)
 Unserialize the object.


Detailed Description

template<class MT, class ST>
class CODEX_Client::SignedMessage< MT, ST >

This templated class defines a basic signed message.

The type of message to be signed is the first template argument, and the type of signature is the second template argument. For RSA signatures, ST will just be a BigNumber.

Definition at line 98 of file CODEX_Client/Message.h.


The documentation for this class was generated from the following file:
Generated on Wed Jun 2 16:33:06 2004 for COrnell Data EXchange (CODEX) by doxygen1.2.18