XRootD
XrdSciTokensMon.hh
Go to the documentation of this file.
1 #ifndef __XrdSciTokensMon_hh__
2 #define __XrdSciTokensMon_hh__
3 /******************************************************************************/
4 /* */
5 /* X r d S c o T o k e n s M o n . h h */
6 /* */
7 /******************************************************************************/
8 
9 #include <string>
10 
12 
14 {
15 public:
16 
17 bool Mon_isIO(const Access_Operation oper)
18  {return oper == AOP_Read || oper == AOP_Update
19  || oper == AOP_Create || oper == AOP_Excl_Create;
20  }
21 
22 void Mon_Report(const XrdSecEntity& Entity, const std::string& subject,
23  const std::string& username);
24 
27 };
28 #endif
Access_Operation
The following are supported operations.
@ AOP_Update
open() r/w or append
@ AOP_Create
open() with create
@ AOP_Read
open() r/o, prepare()
@ AOP_Excl_Create
open() with O_EXCL|O_CREAT
bool Mon_isIO(const Access_Operation oper)
void Mon_Report(const XrdSecEntity &Entity, const std::string &subject, const std::string &username)