C++ Based OPC UA Client/Server SDK
1.6.1.391
|
Class for user context of a Session. More...
#include <sessionusercontextbase.h>
Inherits SessionUserContext.
Public Member Functions | |
SessionUserContextBase () | |
Creates a SessionUserContext object with the provided user ID. | |
virtual bool | addRole (OpcUa_UInt32 roleId) |
Add a role to the SessionUserContext. More... | |
virtual bool | hasRole (OpcUa_UInt32 roleId) const |
Check if a specific role is assigned to this SessionUserContext. More... | |
virtual bool | removeRole (OpcUa_UInt32 roleId) |
Remove a Role from the SessionUserContext. More... | |
virtual UaStatus | setIdentity (const UaIdentityMappingRuleType *pIdentity) |
Set the identiy for the SessionUserContext (e.g. More... | |
virtual UaStatus | setIdentity (const UaUserIdentityToken *pUserIdentityToken) |
Set the identiy for the SessionUserContext (e.g. More... | |
virtual UaIdentityMappingRuleType | getUserIdentity () const |
Set the IdentityMappingRule assigned to the SessionUserContext. More... | |
virtual UaUInt32Array | getRoleIds () const |
Get a list of RoleIds that are assigned to the SessionUserContext. More... | |
virtual bool | isRoot () const |
Check if the SessionUserContext has root priviledges. More... | |
Public Member Functions inherited from ReferenceCounter | |
ReferenceCounter () | |
construction | |
virtual | ~ReferenceCounter () |
destruction | |
Class for user context of a Session.
Toolkit implementation of the SessionUserContext interface that supports a list of RoleIds
|
virtual |
Add a role to the SessionUserContext.
roleId | Unique identifier for the role. This id is set when the role is registered. |
Implements SessionUserContext.
|
virtual |
Get a list of RoleIds that are assigned to the SessionUserContext.
Implements SessionUserContext.
|
virtual |
Set the IdentityMappingRule assigned to the SessionUserContext.
Implements SessionUserContext.
|
virtual |
Check if a specific role is assigned to this SessionUserContext.
roleId | Unique identifier for the role. This id is set when the role is registered. |
Implements SessionUserContext.
|
virtual |
Check if the SessionUserContext has root priviledges.
Implements SessionUserContext.
|
virtual |
Remove a Role from the SessionUserContext.
roleId | Unique identifier for the role. This id is set when the role is registered. |
Implements SessionUserContext.
|
virtual |
Set the identiy for the SessionUserContext (e.g.
Anonymous, UserName, Thumbprint)
pIdentity | The identity that was used to activate the Session. |
Implements SessionUserContext.
|
virtual |
Set the identiy for the SessionUserContext (e.g.
Anonymous, UserName, Thumbprint)
pIdentity | The identity that was used to activate the Session. |
Implements SessionUserContext.