.NET Based OPC UA Client/Server SDK
3.0.5.474
|
A set of permissions assigned to a node. More...
Inherits UnifiedAutomation.UaBase.INodeAccessInfo.
Public Member Functions | |
NodeAccessInfo (uint mode, uint ownerId, uint groupId) | |
Initializes a new instance of the class. More... | |
NodeAccessInfo (PermissionType permissionsScope1, PermissionType permissionsScope2, PermissionType permissionsOther, uint scope1Id, uint scope2Id) | |
Initializes a new instance of the class. More... | |
NodeAccessInfo (UaSchema.NodeAccessInfo nodeAccessInfo, IScopeMapper scopeMapper) | |
Initializes a new instance of the class. More... | |
override string | ToString () |
Formats the permission as a string. More... | |
bool | HasAccess (PermissionType requiredPermissions, IList< uint > scopeIds) |
Checks the required permissions meets the permission requirements. More... | |
bool | HasAccess (PermissionType requiredPermissions, IList< uint > scopeIds, MessageSecurityMode securityMode) |
Checks the required permissions meets the permission requirements. More... | |
bool | HasAccess (MessageSecurityMode securityMode) |
Checks the security mode meets the permission requirements. More... | |
Public Attributes | |
const ushort | UA_NUM_PERMISSION_BITS = 10 |
The number of permission bits. More... | |
Properties | |
bool | SigningRequired [get, set] |
Gets or sets a value indicating if signing is required to access the node. More... | |
bool | EncrytionRequired [get, set] |
Gets or sets a value indicating if encryption is required to access the node. More... | |
PermissionType | PermissionsScope1 [get] |
Gets the Permissions defined for Scope 1 / Owner More... | |
PermissionType | PermissionsScope2 [get] |
Gets the Permissions defined for Scope 2 / Group More... | |
PermissionType | PermissionsOther [get] |
Gets the Permissions defined for Other More... | |
uint | Scope1Id [get] |
Gets the id of Scope 1 / User More... | |
uint | Scope2Id [get] |
Gets the id of Scope 2 / Group More... | |
A set of permissions assigned to a node.
Permissions for two specified scopes and permissions for all other users can be specified using this class.
|
inline |
Initializes a new instance of the class.
mode | The bit mask specifying the permissions for other, group and owner scopes. It is recommended to use NodeAccessMask to set the bits in this argument. |
ownerId | The id for the owner scope. |
groupId | The id for the group scope. |
|
inline |
Initializes a new instance of the class.
permissionsScope1 | The permissions of Scope 1 |
permissionsScope2 | The permissions of Scope 2 |
permissionsOther | The permission for other scopes than defined in scope1Id and scope2Id |
scope1Id | The id of scope 1 |
scope2Id | The id of scope 2 |
|
inline |
Initializes a new instance of the class.
This constructor is used when loading a NodeSet2 XML file that contains the NodeAccessInfo in an extension.
nodeAccessInfo | The NodeAccessInfo defined in the XML file. |
scopeMapper | Used to create a mapping of the scopes defined in the XML file to the scoped used in the server. |
|
inline |
Checks the required permissions meets the permission requirements.
requiredPermissions | The permissions that are needed. |
scopeIds | A list of scopes available. |
Implements UnifiedAutomation.UaBase.INodeAccessInfo.
|
inline |
Checks the required permissions meets the permission requirements.
requiredPermissions | The permissions that are needed. |
scopeIds | A list of scopes available. |
securityMode | The security mode used for the channel. |
Implements UnifiedAutomation.UaBase.INodeAccessInfo.
|
inline |
Checks the security mode meets the permission requirements.
securityMode | The security mode used for the channel. |
Implements UnifiedAutomation.UaBase.INodeAccessInfo.
|
inline |
Formats the permission as a string.
const ushort UnifiedAutomation.UaBase.NodeAccessInfo.UA_NUM_PERMISSION_BITS = 10 |
The number of permission bits.
|
getset |
Gets or sets a value indicating if encryption is required to access the node.
|
get |
Gets the Permissions defined for Other
|
get |
Gets the Permissions defined for Scope 1 / Owner
|
get |
Gets the Permissions defined for Scope 2 / Group
|
get |
Gets the id of Scope 1 / User
|
get |
Gets the id of Scope 2 / Group
|
getset |
Gets or sets a value indicating if signing is required to access the node.