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

CODEX_KeyService::ClientMessageVerifier Class Reference

This class checks the validity of client request messages. More...

#include <ClientMessageVerifier.h>

Inheritance diagram for CODEX_KeyService::ClientMessageVerifier:

Inheritance graph
[legend]
Collaboration diagram for CODEX_KeyService::ClientMessageVerifier:

Collaboration graph
[legend]
List of all members.

Public Methods

 ClientMessageVerifier (CODEX_Events::DeadPileType &deadPile, CODEX_Events::QType &eventQueue, ClientMessageHandler *destination)
 Create a ClientMessageVerifier.

virtual ~ClientMessageVerifier ()
 Virtual destructor.

bool handler (CODEX_Events::CloseEvent &event)
 Handle a CloseEvent.

bool handler (ClientMessageEvent< RequestKeyMsg > &event)
 Handle a RequestKeyMsg.

bool handler (ClientMessageEvent< SignedCreateKeyMsg > &event)
 Handle a signed CreateKeyMsg.

bool handler (ClientMessageEvent< SignedWriteKeyMsg > &event)
 Handle a signed WriteKeyMsg.

bool handler (ClientMessageEvent< SignedReadKeyMsg > &event)
 Handle a signed ReadKeyMsg.


Detailed Description

This class checks the validity of client request messages.

Because this class only checks the validity of messages, it can be used to check requests from clients and requests from delegates on behalf of clients.

Definition at line 36 of file ClientMessageVerifier.h.


Constructor & Destructor Documentation

ClientMessageVerifier::ClientMessageVerifier CODEX_Events::DeadPileType   deadPile,
CODEX_Events::QType   eventQueue,
ClientMessageHandler   destination
 

Create a ClientMessageVerifier.

Parameters:
deadPile  The object adds itself to this when it is ready to be garbage-collected. This is handled by the Activity base class, though the derived class must call enableTerminate() before garbage collection can occur.
eventQueue  The object adds events that it emits to this so that they can be handled.
destination  Another ClientMessageHandler to which an event should be sent if checking is successful.

Definition at line 36 of file ClientMessageVerifier.cc.


Member Function Documentation

bool ClientMessageVerifier::handler ClientMessageEvent< SignedCreateKeyMsg > &    event [virtual]
 

Handle a signed CreateKeyMsg.

Bug:
Have to cast away const for X509_verify.

Implements CODEX_KeyService::ClientMessageHandler.

Reimplemented in CODEX_KeyService::RoutedClientMessageVerifier.

Definition at line 87 of file ClientMessageVerifier.cc.

References CODEX_KeyService::StateInfo::addKeyName(), CODEX_KeyService::KeyInfo::binding(), CODEX_Server::ServerState::caKey(), CODEX_KeyService::StateInfo::getClient(), CODEX_KeyService::StateInfo::getKeyInfo(), CODEX_Server::ServerState::hashFunc(), CODEX_ASN1::Base::initialized(), CODEX_Server::ServerState::instance(), CODEX_KeyService::ClientMessageEvent< MT >::message(), CODEX_Client::BoundNameMsg::request(), CODEX_KeyService::ClientMessageEvent< MT >::reRoute(), CODEX_Events::Activity::sendEvent(), CODEX_KeyService::KeyInfo::signature(), CODEX_Events::EventBase::source(), and CODEX_Ciphers::RSAPublicKey::verifySignature().


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