PLCnext API Documentation 25.0.2.69
|
Base class for RSC service security stubs. More...
#include <RscServiceSecurityStubBase.hxx>
Public Member Functions | |
RscServiceSecurityStubBase (const char *serviceProviderName, IRscAuthorizator *pAuthorizator) | |
Constructs a RscServiceSecurityStubBase instance. More... | |
Protected Types | |
using | ServiceImplType = T |
The type of the service implementation (e.g. DemoServiceImpl) | |
Protected Member Functions | |
void | AuthorizeServiceInvocation (const char *operationName) |
This operation is used to authorize any method call of the service implementation. More... | |
Base class for RSC service security stubs.
This class is a generic decorator for any security stub implementation of RSC services. It derives from the supplied RSC service implementation class, while the RscGenerator generates the security stub code, which overrides any method for calling the AuthorizeServiceInvocation operation for it.
This class is not intended for direct use, but required by RscGenerator to implement services.
T | The service implementation type. |
|
inline |
Constructs a RscServiceSecurityStubBase instance.
serviceProviderName | The service provider name. |
pAuthorizator | The authorizator to authorize any service operation call. |
T | The service implementation type. |
|
inlineprotected |
This operation is used to authorize any method call of the service implementation.
operationName | The operation to authorize. |
T | The service implementation type. |
NotAuthorizedException | If the authorization fails. |