Loading...
Searching...
No Matches
XrdSciTokensMon.hh
Go to the documentation of this file.
#ifndef __XrdSciTokensMon_hh__
#define __XrdSciTokensMon_hh__
/******************************************************************************/
/* */
/* X r d S c o T o k e n s M o n . h h */
/* */
/******************************************************************************/
#include <string>
#include "XrdAcc/XrdAccAuthorize.hh"
class XrdSciTokensMon
{
public:
bool Mon_isIO(const Access_Operation oper)
{return oper == AOP_Read || oper == AOP_Update
|| oper == AOP_Create || oper == AOP_Excl_Create;
}
void Mon_Report(const XrdSecEntity& Entity, const std::string& subject,
const std::string& username);
XrdSciTokensMon() {}
~XrdSciTokensMon() {}
};
#endif
XrdAccAuthorize.hh
Access_Operation
Access_Operation
The following are supported operations.
Definition XrdAccAuthorize.hh:41
AOP_Update
@ AOP_Update
open() r/w or append
Definition XrdAccAuthorize.hh:53
AOP_Create
@ AOP_Create
open() with create
Definition XrdAccAuthorize.hh:44
AOP_Read
@ AOP_Read
open() r/o, prepare()
Definition XrdAccAuthorize.hh:49
AOP_Excl_Create
@ AOP_Excl_Create
open() with O_EXCL|O_CREAT
Definition XrdAccAuthorize.hh:54
XrdSciTokensMon::Mon_isIO
bool Mon_isIO(const Access_Operation oper)
Definition XrdSciTokensMon.hh:17
XrdSciTokensMon::Mon_Report
void Mon_Report(const XrdSecEntity &Entity, const std::string &subject, const std::string &username)
Definition XrdSciTokensMon.cc:15
XrdSciTokensMon::~XrdSciTokensMon
~XrdSciTokensMon()
Definition XrdSciTokensMon.hh:26
XrdSciTokensMon::XrdSciTokensMon
XrdSciTokensMon()
Definition XrdSciTokensMon.hh:25
XrdSecEntity
Definition XrdSecEntity.hh:65