Reference
OpcAccessControlEntry Members
Represents the access control settings of a single OpcPrincipal in an OpcAccessControlList: the operations allowed or denied and the endpoints enabled or disabled for the principal.
Reference
OpcAccessControlEntry Members
- Type
- OpcAccessControlEntry
- Namespace
- Opc.UaFx.Server
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
Constructors
OpcAccessControlEntry
| Overload | Description |
|---|---|
| Opc | Initializes a new instance of the Opcprincipal specified. |
| Opc | Initializes a new instance of the Opcprincipal and operation specified. |
| Opc | Initializes a new instance of the Opcprincipal, operation and endpoint specified. |
Exceptions (all overloads)
| Exception | Condition |
|---|---|
| Argument | The principal is a null reference ( |
OpcAccessControlEntry(OpcPrincipal)
Initializes a new instance of the OpcAccessControlEntry class using the principal specified.
public OpcAccessControlEntry(OpcPrincipal principal)Public Sub New(principal As OpcPrincipal)Parameters
| Name | Type | Description |
|---|---|---|
principal | OpcPrincipal | The OpcPrincipal the entry applies to. |
Remarks
The entry evaluates the operations and the endpoints using the mode Blacklist.
OpcAccessControlEntry(OpcPrincipal, OpcAccessControlMode)
Initializes a new instance of the OpcAccessControlEntry class using the principal and operationAccessMode specified.
public OpcAccessControlEntry(
OpcPrincipal principal,
OpcAccessControlMode operationAccessMode)Public Sub New(
principal As OpcPrincipal,
operationAccessMode As OpcAccessControlMode)Parameters
| Name | Type | Description |
|---|---|---|
principal | OpcPrincipal | The OpcPrincipal the entry applies to. |
operation | Opc | One of the members defined by the Opc |
Remarks
The entry evaluates the endpoints using the mode Blacklist.
OpcAccessControlEntry(OpcPrincipal, OpcAccessControlMode, OpcAccessControlMode)
Initializes a new instance of the OpcAccessControlEntry class using the principal, operationAccessMode and endpointAccessMode specified.
public OpcAccessControlEntry(
OpcPrincipal principal,
OpcAccessControlMode operationAccessMode,
OpcAccessControlMode endpointAccessMode)Public Sub New(
principal As OpcPrincipal,
operationAccessMode As OpcAccessControlMode,
endpointAccessMode As OpcAccessControlMode)Parameters
| Name | Type | Description |
|---|---|---|
principal | OpcPrincipal | The OpcPrincipal the entry applies to. |
operation | Opc | One of the members defined by the Opc |
endpoint | Opc | One of the members defined by the Opc |
Properties
AllowedOperations
Gets a read-only collection of the operations which have been allowed explicitly for the Principal.
public OpcOperationTypeReadOnlyCollection AllowedOperations { get; }Public ReadOnly Property AllowedOperations As OpcOperationTypeReadOnlyCollectionProperty value
OpcOperationTypeReadOnlyCollection
An instance of the OpcOperationTypeReadOnlyCollection class.
DeniedOperations
Gets a read-only collection of the operations which have been denied explicitly for the Principal.
public OpcOperationTypeReadOnlyCollection DeniedOperations { get; }Public ReadOnly Property DeniedOperations As OpcOperationTypeReadOnlyCollectionProperty value
OpcOperationTypeReadOnlyCollection
An instance of the OpcOperationTypeReadOnlyCollection class.
DisabledEndpoints
Gets a read-only collection of the endpoints which have been disabled explicitly for the Principal.
public OpcEndpointIdentityReadOnlyCollection DisabledEndpoints { get; }Public ReadOnly Property DisabledEndpoints As OpcEndpointIdentityReadOnlyCollectionProperty value
OpcEndpointIdentityReadOnlyCollection
An instance of the OpcEndpointIdentityReadOnlyCollection class.
EnabledEndpoints
Gets a read-only collection of the endpoints which have been enabled explicitly for the Principal.
public OpcEndpointIdentityReadOnlyCollection EnabledEndpoints { get; }Public ReadOnly Property EnabledEndpoints As OpcEndpointIdentityReadOnlyCollectionProperty value
OpcEndpointIdentityReadOnlyCollection
An instance of the OpcEndpointIdentityReadOnlyCollection class.
EndpointAccessMode
Gets the mode which the entry uses to evaluate an endpoint which has neither been enabled nor disabled explicitly.
public OpcAccessControlMode EndpointAccessMode { get; }Public ReadOnly Property EndpointAccessMode As OpcAccessControlModeProperty value
One of the members defined by the OpcAccessControlMode enumeration.
OperationAccessMode
Gets the mode which the entry uses to evaluate an operation which has neither been allowed nor denied explicitly.
public OpcAccessControlMode OperationAccessMode { get; }Public ReadOnly Property OperationAccessMode As OpcAccessControlModeProperty value
One of the members defined by the OpcAccessControlMode enumeration.
Principal
Gets the principal the entry applies to.
public OpcPrincipal Principal { get; }Public ReadOnly Property Principal As OpcPrincipalProperty value
The OpcPrincipal specified on construction.
Methods
Allow
| Overload | Description |
|---|---|
| Allow( | Allows the operations specified explicitly for the Principal. |
| Allow( | Allows the operations specified explicitly for the Principal. |
| Allow( | Allows the requests of the types specified by operations explicitly for the Principal. |
| Allow( | Allows the requests of the types specified by operations explicitly for the Principal. |
Allow(IEnumerable<OpcOperationType>)
Allows the operations specified explicitly for the Principal.
public OpcAccessControlEntry Allow(IEnumerable<OpcOperationType> operations)Public Function Allow(
operations As IEnumerable(Of OpcOperationType)) As OpcAccessControlEntryParameters
| Name | Type | Description |
|---|---|---|
operations | IEnumerable<OpcOperationType> | A sequence of OpcOperationType instances to allow. |
Returns
The current OpcAccessControlEntry instance to continue with subsequent operations on this instance.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The operations or one of the instances in the sequence is a null reference ( |
Remarks
An operation which has been denied explicitly before is removed from the DeniedOperations. Operations are compared by their Key.
Allow(params OpcOperationType[])
Allows the operations specified explicitly for the Principal.
public OpcAccessControlEntry Allow(params OpcOperationType[] operations)Public Function Allow(
ParamArray operations As OpcOperationType()) As OpcAccessControlEntryParameters
| Name | Type | Description |
|---|---|---|
operations | params OpcOperationType[] | An array of OpcOperationType instances to allow. |
Returns
The current OpcAccessControlEntry instance to continue with subsequent operations on this instance.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The operations or one of the instances in the array is a null reference ( |
Remarks
An operation which has been denied explicitly before is removed from the DeniedOperations. Operations are compared by their Key.
Allow(IEnumerable<OpcRequestType>)
Allows the requests of the types specified by operations explicitly for the Principal.
public OpcAccessControlEntry Allow(IEnumerable<OpcRequestType> operations)Public Function Allow(
operations As IEnumerable(Of OpcRequestType)) As OpcAccessControlEntryParameters
| Name | Type | Description |
|---|---|---|
operations | IEnumerable<OpcRequestType> | A sequence of members defined by the OpcRequestType enumeration which specify the requests to allow. |
Returns
The current OpcAccessControlEntry instance to continue with subsequent operations on this instance.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The operations is a null reference ( |
Remarks
A request type which has been denied explicitly before is removed from the DeniedOperations.
Allow(params OpcRequestType[])
Allows the requests of the types specified by operations explicitly for the Principal.
public OpcAccessControlEntry Allow(params OpcRequestType[] operations)Public Function Allow(
ParamArray operations As OpcRequestType()) As OpcAccessControlEntryParameters
| Name | Type | Description |
|---|---|---|
operations | params OpcRequestType[] | An array of members defined by the OpcRequestType enumeration which specify the requests to allow. |
Returns
The current OpcAccessControlEntry instance to continue with subsequent operations on this instance.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The operations is a null reference ( |
Remarks
A request type which has been denied explicitly before is removed from the DeniedOperations.
Assign
| Overload | Description |
|---|---|
| Assign( | Assigns the Principal of the current Opcroles. |
| Assign( | Assigns the Principal of the current Opcroles. |
Assign(IEnumerable<OpcAccessControlRole>)
Assigns the Principal of the current OpcAccessControlEntry to the OpcAccessControlRole instances defined by roles.
public OpcAccessControlEntry Assign(IEnumerable<OpcAccessControlRole> roles)Public Function Assign(
roles As IEnumerable(Of OpcAccessControlRole)) As OpcAccessControlEntryParameters
| Name | Type | Description |
|---|---|---|
roles | IEnumerable<Opc | A sequence of Opc |
Returns
The current OpcAccessControlEntry instance to continue with subsequent operations on this instance.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The roles or one of the instances in the sequence is a null reference ( |
Assign(params OpcAccessControlRole[])
Assigns the Principal of the current OpcAccessControlEntry to the OpcAccessControlRole instances defined by roles.
public OpcAccessControlEntry Assign(params OpcAccessControlRole[] roles)Public Function Assign(
ParamArray roles As OpcAccessControlRole()) As OpcAccessControlEntryParameters
| Name | Type | Description |
|---|---|---|
roles | params Opc | An array of Opc |
Returns
The current OpcAccessControlEntry instance to continue with subsequent operations on this instance.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The roles or one of the instances in the array is a null reference ( |
Deny
| Overload | Description |
|---|---|
| Deny( | Denies the operations specified explicitly for the Principal. |
| Deny( | Denies the operations specified explicitly for the Principal. |
| Deny( | Denies the requests of the types specified by operations explicitly for the Principal. |
| Deny( | Denies the requests of the types specified by operations explicitly for the Principal. |
Deny(IEnumerable<OpcOperationType>)
Denies the operations specified explicitly for the Principal.
public OpcAccessControlEntry Deny(IEnumerable<OpcOperationType> operations)Public Function Deny(
operations As IEnumerable(Of OpcOperationType)) As OpcAccessControlEntryParameters
| Name | Type | Description |
|---|---|---|
operations | IEnumerable<OpcOperationType> | A sequence of OpcOperationType instances to deny. |
Returns
The current OpcAccessControlEntry instance to continue with subsequent operations on this instance.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The operations or one of the instances in the sequence is a null reference ( |
Remarks
An operation which has been allowed explicitly before is removed from the AllowedOperations. Operations are compared by their Key.
Deny(params OpcOperationType[])
Denies the operations specified explicitly for the Principal.
public OpcAccessControlEntry Deny(params OpcOperationType[] operations)Public Function Deny(
ParamArray operations As OpcOperationType()) As OpcAccessControlEntryParameters
| Name | Type | Description |
|---|---|---|
operations | params OpcOperationType[] | An array of OpcOperationType instances to deny. |
Returns
The current OpcAccessControlEntry instance to continue with subsequent operations on this instance.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The operations or one of the instances in the array is a null reference ( |
Remarks
An operation which has been allowed explicitly before is removed from the AllowedOperations. Operations are compared by their Key.
Deny(IEnumerable<OpcRequestType>)
Denies the requests of the types specified by operations explicitly for the Principal.
public OpcAccessControlEntry Deny(IEnumerable<OpcRequestType> operations)Public Function Deny(
operations As IEnumerable(Of OpcRequestType)) As OpcAccessControlEntryParameters
| Name | Type | Description |
|---|---|---|
operations | IEnumerable<OpcRequestType> | A sequence of members defined by the OpcRequestType enumeration which specify the requests to deny. |
Returns
The current OpcAccessControlEntry instance to continue with subsequent operations on this instance.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The operations is a null reference ( |
Remarks
A request type which has been allowed explicitly before is removed from the AllowedOperations.
Deny(params OpcRequestType[])
Denies the requests of the types specified by operations explicitly for the Principal.
public OpcAccessControlEntry Deny(params OpcRequestType[] operations)Public Function Deny(
ParamArray operations As OpcRequestType()) As OpcAccessControlEntryParameters
| Name | Type | Description |
|---|---|---|
operations | params OpcRequestType[] | An array of members defined by the OpcRequestType enumeration which specify the requests to deny. |
Returns
The current OpcAccessControlEntry instance to continue with subsequent operations on this instance.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The operations is a null reference ( |
Remarks
A request type which has been allowed explicitly before is removed from the AllowedOperations.
Disable
| Overload | Description |
|---|---|
| Disable( | Disables the endpoints specified explicitly for the Principal. |
| Disable( | Disables the endpoints specified explicitly for the Principal. |
Disable(IEnumerable<OpcEndpointIdentity>)
Disables the endpoints specified explicitly for the Principal.
public OpcAccessControlEntry Disable(IEnumerable<OpcEndpointIdentity> endpoints)Public Function Disable(
endpoints As IEnumerable(Of OpcEndpointIdentity)) As OpcAccessControlEntryParameters
| Name | Type | Description |
|---|---|---|
endpoints | IEnumerable<Opc | A sequence of Opc |
Returns
The current OpcAccessControlEntry instance to continue with subsequent operations on this instance.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The endpoints or one of the instances in the sequence is a null reference ( |
Remarks
An endpoint which has been enabled explicitly before is removed from the EnabledEndpoints. Endpoints are compared by their URL and by the mode, algorithm and level of their security policy.
Disable(params OpcEndpointIdentity[])
Disables the endpoints specified explicitly for the Principal.
public OpcAccessControlEntry Disable(params OpcEndpointIdentity[] endpoints)Public Function Disable(
ParamArray endpoints As OpcEndpointIdentity()) As OpcAccessControlEntryParameters
| Name | Type | Description |
|---|---|---|
endpoints | params Opc | An array of Opc |
Returns
The current OpcAccessControlEntry instance to continue with subsequent operations on this instance.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The endpoints or one of the instances in the array is a null reference ( |
Remarks
An endpoint which has been enabled explicitly before is removed from the EnabledEndpoints. Endpoints are compared by their URL and by the mode, algorithm and level of their security policy.
Enable
| Overload | Description |
|---|---|
| Enable( | Enables the endpoints specified explicitly for the Principal. |
| Enable( | Enables the endpoints specified explicitly for the Principal. |
Enable(IEnumerable<OpcEndpointIdentity>)
Enables the endpoints specified explicitly for the Principal.
public OpcAccessControlEntry Enable(IEnumerable<OpcEndpointIdentity> endpoints)Public Function Enable(
endpoints As IEnumerable(Of OpcEndpointIdentity)) As OpcAccessControlEntryParameters
| Name | Type | Description |
|---|---|---|
endpoints | IEnumerable<Opc | A sequence of Opc |
Returns
The current OpcAccessControlEntry instance to continue with subsequent operations on this instance.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The endpoints or one of the instances in the sequence is a null reference ( |
Remarks
An endpoint which has been disabled explicitly before is removed from the DisabledEndpoints. Endpoints are compared by their URL and by the mode, algorithm and level of their security policy.
Enable(params OpcEndpointIdentity[])
Enables the endpoints specified explicitly for the Principal.
public OpcAccessControlEntry Enable(params OpcEndpointIdentity[] endpoints)Public Function Enable(
ParamArray endpoints As OpcEndpointIdentity()) As OpcAccessControlEntryParameters
| Name | Type | Description |
|---|---|---|
endpoints | params Opc | An array of Opc |
Returns
The current OpcAccessControlEntry instance to continue with subsequent operations on this instance.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The endpoints or one of the instances in the array is a null reference ( |
Remarks
An endpoint which has been disabled explicitly before is removed from the DisabledEndpoints. Endpoints are compared by their URL and by the mode, algorithm and level of their security policy.
IsAllowed
| Overload | Description |
|---|---|
| IsAllowed( | Determines whether the operation specified is allowed for the Principal. |
| IsAllowed( | Determines whether the requests of the type specified by operation are allowed for the Principal. |
IsAllowed(OpcOperationType)
Determines whether the operation specified is allowed for the Principal.
public bool IsAllowed(OpcOperationType operation)Public Function IsAllowed(operation As OpcOperationType) As BooleanParameters
| Name | Type | Description |
|---|---|---|
operation | OpcOperationType | The OpcOperationType to verify. |
Returns
The value true if the operation has been allowed explicitly or if the OperationAccessMode is Whitelist and the operation has not been denied explicitly; otherwise the value false.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The operation is a null reference ( |
Remarks
In the mode Explicit an operation which has neither been allowed nor denied explicitly is neither allowed nor denied, so that IsAllowed and IsDenied both return false.
IsAllowed(OpcRequestType)
Determines whether the requests of the type specified by operation are allowed for the Principal.
public bool IsAllowed(OpcRequestType operation)Public Function IsAllowed(operation As OpcRequestType) As BooleanParameters
| Name | Type | Description |
|---|---|---|
operation | OpcRequestType | One of the members defined by the OpcRequestType enumeration which specifies the requests to verify. |
Returns
The value true if the request type has been allowed explicitly or if the OperationAccessMode is Whitelist and the request type has not been denied explicitly; otherwise the value false.
IsDenied
| Overload | Description |
|---|---|
| IsDenied( | Determines whether the operation specified is denied for the Principal. |
| IsDenied( | Determines whether the requests of the type specified by operation are denied for the Principal. |
IsDenied(OpcOperationType)
Determines whether the operation specified is denied for the Principal.
public bool IsDenied(OpcOperationType operation)Public Function IsDenied(operation As OpcOperationType) As BooleanParameters
| Name | Type | Description |
|---|---|---|
operation | OpcOperationType | The OpcOperationType to verify. |
Returns
The value true if the operation has been denied explicitly or if the OperationAccessMode is Blacklist and the operation has not been allowed explicitly; otherwise the value false.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The operation is a null reference ( |
Remarks
In the mode Explicit an operation which has neither been allowed nor denied explicitly is neither allowed nor denied, so that IsAllowed and IsDenied both return false.
IsDenied(OpcRequestType)
Determines whether the requests of the type specified by operation are denied for the Principal.
public bool IsDenied(OpcRequestType operation)Public Function IsDenied(operation As OpcRequestType) As BooleanParameters
| Name | Type | Description |
|---|---|---|
operation | OpcRequestType | One of the members defined by the OpcRequestType enumeration which specifies the requests to verify. |
Returns
The value true if the request type has been denied explicitly or if the OperationAccessMode is Blacklist and the request type has not been allowed explicitly; otherwise the value false.
IsDisabled
Determines whether the endpoint specified is disabled for the Principal.
public bool IsDisabled(OpcEndpointIdentity endpoint)Public Function IsDisabled(endpoint As OpcEndpointIdentity) As BooleanParameters
| Name | Type | Description |
|---|---|---|
endpoint | Opc | The Opc |
Returns
The value true if the endpoint has been disabled explicitly or if the endpoint access mode specified on construction is Blacklist and the endpoint has not been enabled explicitly; otherwise the value false.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The endpoint is a null reference ( |
Remarks
In the mode Explicit an endpoint which has neither been enabled nor disabled explicitly is neither enabled nor disabled, so that IsEnabled and IsDisabled both return false.
IsEnabled
Determines whether the endpoint specified is enabled for the Principal.
public bool IsEnabled(OpcEndpointIdentity endpoint)Public Function IsEnabled(endpoint As OpcEndpointIdentity) As BooleanParameters
| Name | Type | Description |
|---|---|---|
endpoint | Opc | The Opc |
Returns
The value true if the endpoint has been enabled explicitly or if the endpoint access mode specified on construction is Whitelist and the endpoint has not been disabled explicitly; otherwise the value false.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The endpoint is a null reference ( |
Remarks
In the mode Explicit an endpoint which has neither been enabled nor disabled explicitly is neither enabled nor disabled, so that IsEnabled and IsDisabled both return false.
Revoke
| Overload | Description |
|---|---|
| Revoke( | Revokes the assignment of the Principal of the current Opcroles. |
| Revoke( | Revokes the assignment of the Principal of the current Opcroles. |
Revoke(IEnumerable<OpcAccessControlRole>)
Revokes the assignment of the Principal of the current OpcAccessControlEntry to the OpcAccessControlRole instances defined by roles.
public OpcAccessControlEntry Revoke(IEnumerable<OpcAccessControlRole> roles)Public Function Revoke(
roles As IEnumerable(Of OpcAccessControlRole)) As OpcAccessControlEntryParameters
| Name | Type | Description |
|---|---|---|
roles | IEnumerable<Opc | A sequence of Opc |
Returns
The current OpcAccessControlEntry instance to continue with subsequent operations on this instance.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The roles or one of the instances in the sequence is a null reference ( |
Revoke(params OpcAccessControlRole[])
Revokes the assignment of the Principal of the current OpcAccessControlEntry to the OpcAccessControlRole instances defined by roles.
public OpcAccessControlEntry Revoke(params OpcAccessControlRole[] roles)Public Function Revoke(
ParamArray roles As OpcAccessControlRole()) As OpcAccessControlEntryParameters
| Name | Type | Description |
|---|---|---|
roles | params Opc | An array of Opc |
Returns
The current OpcAccessControlEntry instance to continue with subsequent operations on this instance.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The roles or one of the instances in the array is a null reference ( |

