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: ClientResponseHandler.h,v 1.3 2004/05/19 15:56:51 mmarsh Exp $ 00008 // 00009 // $Log: ClientResponseHandler.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_CLIENTRESPONSEHANDLER_H__ 00019 #define __CODEX_KEYSERVICE_CLIENTRESPONSEHANDLER_H__ 00020 00021 #include "ClientResponseEvent.h" 00022 #include "CODEX_Events/Activity.h" 00023 #include "CODEX_Client/Message.h" 00024 #include "CODEX_Ciphers/SHA1HashFunction.h" 00025 00026 namespace CODEX_KeyService 00027 { 00028 using namespace CODEX_Client; 00029 00044 class ClientResponseHandler : public virtual CODEX_Events::CloseHandler 00045 { 00046 public : 00048 ClientResponseHandler() : 00049 CODEX_Events::Activity( *(CODEX_Events::DeadPileType*)0, 00050 *(CODEX_Events::QType*)0 ) 00051 {} 00052 00054 virtual ~ClientResponseHandler() {} 00055 00057 virtual bool handler( 00058 ClientResponseEvent< SignedPublicKeyMsg >& event ) = 0; 00059 00061 virtual bool handler( 00062 ClientResponseEvent< SignedBoundNameMsg >& event ) = 0; 00063 00065 virtual bool handler( 00066 ClientResponseEvent< SignedKeyStoredMsg >& event ) = 0; 00067 00069 virtual bool handler( 00070 ClientResponseEvent< SignedBlindKeyMsg >& event ) = 0; 00071 }; 00072 00073 } 00074 00075 #endif /* __CODEX_KEYSERVICE_CLIENTRESPONSEHANDLER_H__ */
1.4.1