Back to index

nordugrid-arc-nox  1.1.0~rc6
GACLPDP.h
Go to the documentation of this file.
00001 #ifndef __ARC_SEC_GACLPDP_H__
00002 #define __ARC_SEC_GACLPDP_H__
00003 
00004 #include <arc/XMLNode.h>
00005 #include <arc/ArcConfig.h>
00006 #include <arc/security/PDP.h>
00007 #include <arc/loader/Loader.h>
00008 #include <arc/message/SecAttr.h>
00009 /*
00010 #include <stdlib.h>
00011 
00012 #include <arc/ArcConfig.h>
00013 #include <arc/security/ArcPDP/Evaluator.h>
00014 */
00015 
00016 namespace ArcSec {
00017 
00018 
00019 class GACLPDP: public PDP {
00020  public:
00021   static Arc::SecAttrFormat GACL;
00022   static Arc::Plugin* get_gacl_pdp(Arc::PluginArgument *arg);
00023   GACLPDP(Arc::Config* cfg);
00024   virtual ~GACLPDP();
00025   virtual bool isPermitted(Arc::Message *msg) const;
00026  private:
00027   std::list<std::string> select_attrs;
00028   std::list<std::string> reject_attrs;
00029   std::list<std::string> policy_locations;
00030   Arc::XMLNodeContainer policy_docs;
00031  protected:
00032   static Arc::Logger logger;
00033 };
00034 
00035 } // namespace ArcSec
00036 
00037 #endif /* __ARC_SEC_GACLPDP_H__ */
00038