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

CODEX_Client::WriteKeyMsg Class Reference

This message is used to write a key with a name that has previously been bound. More...

#include <Message.h>

Inheritance diagram for CODEX_Client::WriteKeyMsg:

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

Collaboration graph
[legend]
List of all members.

Public Methods

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

 WriteKeyMsg (const CODEX_ASN1::OctetString &name, const RequestCipherTextType &encryption, const CODEX_Ciphers::RSAPlaintextPK &proof, const CODEX_Ciphers::Credentials &credentials, const SignedBoundNameMsg &binding)
 Create a WriteKeyMsg from the basic components.

 WriteKeyMsg (const WriteKeyMsg &aWKM)
 Create a WriteKeyMsg from another WriteKeyMsg.

virtual ~WriteKeyMsg ()
 Virtual destructor.

void operator= (const WriteKeyMsg &aWKM)
 Assignment operator.

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


const RequestCipherTextTypeencryption () const
 
Returns:
The encryption of the key with the service's key.


const CODEX_Ciphers::RSAPlaintextPKproof () const
 
Returns:
The plaintext proof of knowledge certificate.


const CODEX_Ciphers::Credentialscredentials () const
 
Returns:
The client's credentials to perform this operation.


const SignedBoundNameMsgbinding () const
 
Returns:
The original binding confirmation, signed by the service.


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

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


Detailed Description

This message is used to write a key with a name that has previously been bound.

The contents of the message are sufficient to assure the service that the client is authorized to write the key, and that the client knows the key, which is transferred and stored in encrypted form.

In order to be accepted by the service, this message must be signed with the private key corresponding to the public key in the credentials.

Definition at line 342 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