8 #include "Arp/System/Security/SecurityToken.hpp" 9 #include "Arp/System/Commons/Exceptions/InvalidOperationException.hpp" 14 namespace Arp {
namespace System {
namespace Security
19 class DisableSecurityContext;
26 friend class Arp::System::Security::Internal::DisableSecurityContext;
33 ARP_CXX_SYMBOL_EXPORT SecurityContext(
bool isEnabled,
const SecurityToken& securityToken);
35 SecurityContext(
const SecurityContext& arg) =
delete;
37 SecurityContext& operator=(
const SecurityContext& arg) =
delete;
39 ARP_CXX_SYMBOL_EXPORT ~SecurityContext(
void);
42 ARP_CXX_SYMBOL_EXPORT
static bool HasCurrent(
void);
43 ARP_CXX_SYMBOL_EXPORT
static const SecurityContext& GetCurrent(
void);
52 static thread_local
const SecurityContext* pCurrent;
58 inline const SecurityToken& SecurityContext::GetSecurityToken()
const 60 return this->securityToken;
Definition: SecurityToken.hpp:11
Root namespace for the PLCnext API
Definition: SecurityContext.hpp:24
System components used by the System, Device, Plc or Io domains.
Namespace for basic functions of the framework
Definition: Console.hpp:14