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

ClientResponseSigner.h

00001 /*
00002  * Copyright 2003 Michael A. Marsh, Cornell University. All rights reserved.
00003  * This software is released under the modified BSD license.
00004  * See the file LICENSE in the top-level directory for details.
00005  */
00006 //
00007 // $Id: ClientResponseSigner.h,v 1.3 2004/05/19 15:56:51 mmarsh Exp $
00008 //
00009 // $Log: ClientResponseSigner.h,v $
00010 // Revision 1.3  2004/05/19 15:56:51  mmarsh
00011 // *** empty log message ***
00012 //
00013 // Revision 1.2  2003/11/04 22:31:49  mmarsh
00014 // *** empty log message ***
00015 //
00016 //
00017 
00018 #ifndef __CODEX_KEYSERVICE_CLIENTRESPONSESIGNER_H__
00019 #define __CODEX_KEYSERVICE_CLIENTRESPONSESIGNER_H__
00020 
00021 #include "SupportedClientResponseHandler.h"
00022 #include "SupportedClientResponseEvent.h"
00023 #include "CODEX_Server/ServerResponseHandler.h"
00024 
00025 namespace CODEX_KeyService
00026 {
00031    class ClientResponseSigner : public SupportedClientResponseHandler
00032    {
00033       public :
00035          ClientResponseSigner(
00036             CODEX_Events::DeadPileType& deadPile,
00037             CODEX_Events::QType& eventQueue,
00038             CODEX_Server::ServerResponseHandler* destination );
00039 
00041          virtual ~ClientResponseSigner();
00042 
00044          bool handler(
00045             SupportedClientResponseEvent< BoundNameMsg, SignedCreateKeyMsg >&
00046             event );
00047 
00049          bool handler(
00050             SupportedClientResponseEvent< KeyStoredMsg, SignedWriteKeyMsg >&
00051             event );
00052 
00054          bool handler( SupportedKeyStoredEvent& event );
00055 
00057          bool handler(
00058             SupportedClientResponseEvent< VerifiableBlindKeyMsg,
00059             SignedReadKeyMsg >& event );
00060 
00061       private :
00062          bool process(
00063             const CODEX_Client::Message& message,
00064             const CODEX_Server::ServerState::LSType::LabelType& label,
00065             CODEX_Events::Activity* source,
00066             const CODEX_Server::RoutingInfo& routingInfo );
00067 
00068          CODEX_Server::ServerResponseHandler*  m_destination;
00069    };
00070 
00071 }
00072 
00073 #endif /* __CODEX_KEYSERVICE_CLIENTRESPONSESIGNER_H__ */

Generated on Wed Jun 2 16:32:54 2004 for COrnell Data EXchange (CODEX) by doxygen1.2.18