Back to index

nordugrid-arc-nox  1.1.0~rc6
SimpleListPDP.h
Go to the documentation of this file.
00001 #ifndef __ARC_SEC_SIMPLEPDP_H__
00002 #define __ARC_SEC_SIMPLEPDP_H__
00003 
00004 #include <stdlib.h>
00005 
00006 #include <arc/ArcConfig.h>
00007 #include <arc/security/PDP.h>
00008 
00009 namespace ArcSec {
00010 
00012 
00017 class SimpleListPDP : public PDP {
00018  public:
00019   static Arc::Plugin* get_simplelist_pdp(Arc::PluginArgument *arg);
00020   SimpleListPDP(Arc::Config* cfg);
00021   virtual ~SimpleListPDP() {};
00022   virtual bool isPermitted(Arc::Message *msg) const;
00023  private:
00024   std::string location;
00025   std::list<std::string> dns;
00026  protected:
00027   static Arc::Logger logger;
00028 };
00029 
00030 } // namespace ArcSec
00031 
00032 #endif /* __ARC_SEC_SIMPLELISTPDP_H__ */