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

CODEX_Client::KeyStoredMsg Class Reference

This is the message returned by the service after processing a WriteKeyMsg. More...

#include <Message.h>

Inheritance diagram for CODEX_Client::KeyStoredMsg:

Inheritance graph
[legend]
Collaboration diagram for CODEX_Client::KeyStoredMsg:

Collaboration graph
[legend]
List of all members.

Public Methods

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

 KeyStoredMsg (const CODEX_ASN1::OctetString &name, const CODEX_Ciphers::RSASignature &requestSignature)
 Create a KeyStoredMsg from an OctetString and an RSASignature.

 KeyStoredMsg (const KeyStoredMsg &aKSM)
 Create a KeyStoredMsg from another KeyStoredMsg.

virtual ~KeyStoredMsg ()
 Virtual destructor.

void operator= (const KeyStoredMsg &aKSM)
 Assignment operator.

const CODEX_ASN1::OctetStringname () const
 
Returns:
The name of the key.


const CODEX_Ciphers::RSASignaturerequestSignature () const
 
Returns:
The client's signature from the write request.


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

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


Detailed Description

This is the message returned by the service after processing a WriteKeyMsg.

We can save on space here by not returning the entire request, but only the relevant signature. As long as the client still has its original request this is sufficient, since the service must have approved a message with this signature if the KeyStoredMsg is successfully signed by the service.

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


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