LOM2M  0.8.0
AccessControlController.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2013-2021 LAAS-CNRS (www.laas.fr)
3  7 Colonel Roche 31077 Toulouse - France
4 
5  The use of this source code requires an agreement with the CNRS.
6 
7  Initial Contributors:
8  David Gauchard, Guillaume Garzone, Thierry Monteil.
9 */
10 
11 #ifndef __ACP_CONTR_LOM2M
12 #define __ACP_CONTR_LOM2M
13 
14 #include "Entity.h"
15 #include "RequestPrimitive.h"
16 #include "configuration.h"
17 
25 int checkACP(std::list<AccessControlPolicy*> acpList, const String& originator, Operation operation, bool checkSelfPrivileges = false);
26 
33 int checkAccessRights(Entity* entity, const RequestPrimitive& req);
34 
35 #endif
int checkAccessRights(Entity *entity, const RequestPrimitive &req)
Definition: AccessControlController.cpp:108
int checkACP(std::list< AccessControlPolicy * > acpList, const String &originator, Operation operation, bool checkSelfPrivileges=false)
Definition: AccessControlController.cpp:17
Operation
Definition: Enum.h:43
Definition: RequestPrimitive.h:41
Definition: Entity.h:235