PLCnext API Documentation
22.6.0.43
|
This service checks if a session has particular permissions for protected entity operations. More...
#include <IAuthorizationInfoService.hpp>
Public Types | |
using | Ptr = std::shared_ptr< IAuthorizationInfoService > |
Public Types inherited from Arp::System::Rsc::Services::IRscService | |
typedef std::shared_ptr< IRscService > | Ptr |
Public Member Functions | |
IAuthorizationInfoService (void)=default | |
Constructs an IAuthorizationInfoService instance. More... | |
virtual boolean | HasPermissionFor (const RscString< 512 > &entity, Operation operation, SecurityToken securityToken)=0 |
Checks if the specified session has permission to execute particular entity operations, e.g. calling Rsc service operations, accessing files, reading data. More... | |
Public Member Functions inherited from Arp::System::Rsc::Services::IRscService | |
IRscService (void)=default | |
Constructs an IRscService instance. More... | |
virtual | ~IRscService (void)=default |
Destructs this instance and frees all resouces. More... | |
Static Public Member Functions | |
static IRscServiceProxyFactory & | GetProxyFactory (void) |
Static Public Member Functions inherited from Arp::System::Rsc::Services::IRscService | |
static IRscServiceProxyFactory & | GetProxyFactory (void) |
Returns a reference to service proxy factory to create a proxy instance of the service More... | |
This service checks if a session has particular permissions for protected entity operations.
This service is only usable from the SDK for other processes running on the PLC; it is not intended for public use over RSC.
This service is defined in library Arp.System.Um.
|
default |
Constructs an IAuthorizationInfoService instance.
|
pure virtual |
Checks if the specified session has permission to execute particular entity operations, e.g. calling Rsc service operations, accessing files, reading data.
entity | The protected entity to check the permission for, e.g. Rsc service operations, files, Gds data points. See default permission-config file on a target for examples. |
operation | The operation to be executed on the entity, like Arp.System.Um.Services.Operation.Call to invoke Rsc services or Arp.System.Um.Services.Operation.ReadValue to read values of Gds data points. |
securityToken | The security token of the session to check the permission for, which has been obtained through Arp.System.Um.Services.IPasswordAuthenticationService |
true
if the access is granted, otherwise false
.