Back to index

nordugrid-arc-nox  1.1.0~rc6
UsernameTokenSH.h
Go to the documentation of this file.
00001 #ifndef __ARC_SEC_USERNAMETOKENSH_H__
00002 #define __ARC_SEC_USERNAMETOKENSH_H__
00003 
00004 #include <stdlib.h>
00005 
00006 #include <arc/ArcConfig.h>
00007 #include <arc/message/Message.h>
00008 #include <arc/message/SecHandler.h>
00009 
00010 namespace ArcSec {
00011 
00013 
00014 class UsernameTokenSH : public SecHandler {
00015  private:
00016   enum {
00017     process_none,
00018     process_extract,
00019     process_generate
00020   } process_type_;
00021   enum {
00022     password_text,
00023     password_digest
00024   } password_type_;
00025   std::string username_;
00026   std::string password_;
00027   std::string password_source_;
00028 
00029  public:
00030   UsernameTokenSH(Arc::Config *cfg, Arc::ChainContext* ctx);
00031   virtual ~UsernameTokenSH(void);
00032   static Arc::Plugin* get_sechandler(Arc::PluginArgument* arg);
00033   virtual bool Handle(Arc::Message* msg) const;
00034 };
00035 
00036 } // namespace ArcSec
00037 
00038 #endif /* __ARC_SEC_USERNAMETOKENSH_H__ */
00039