OPC Studio User's Guide and Reference
EffectiveMessageSecurityModes Property



OpcLabs.ServerOpcUA Assembly > OpcLabs.EasyOpc.UA Namespace > EasyUAServerCore Class : EffectiveMessageSecurityModes Property
The effective message security modes the server can use.
Syntax
'Declaration
 
Public ReadOnly Property EffectiveMessageSecurityModes As UAMessageSecurityModes
'Usage
 
Dim instance As EasyUAServerCore
Dim value As UAMessageSecurityModes
 
value = instance.EffectiveMessageSecurityModes
public UAMessageSecurityModes EffectiveMessageSecurityModes {get;}
public:
property UAMessageSecurityModes EffectiveMessageSecurityModes {
   UAMessageSecurityModes get();
}

Property Value

The default value of this property is All (UAMessageSecurityModes.All).

Because there is an implicit conversion from OpcLabs.EasyOpc.UA.Engine.UAMessageSecurityModes to OpcLabs.EasyOpc.UA.Engine.UAEndpointSelectionPolicy, you can simply use the returned OpcLabs.EasyOpc.UA.Engine.UAMessageSecurityModes in any place where OpcLabs.EasyOpc.UA.Engine.UAEndpointSelectionPolicy is expected as input, and the corresponding endpoint selection policy will be constructed automatically from the message security modes. When the implicit conversion operators are not supported (such as with Python.NET), you can use the OpcLabs.EasyOpc.UA.Engine.UAEndpointSelectionPolicy.FromUAMessageSecurityModes static method instead.

Remarks

The effective message security modes are computed by making a logical AND of MessageSecurityModes with allowed message security modes specified in the OpcLabs.EasyOpc.UA.Engine.EasyUAServerEngineParameters.AllowedMessageSecurityModes of OpcLabs.EasyOpc.UA.Engine.EasyUAServerSharedParameters.EngineParameters of SharedParameters. This functionality allows to restrict the provided message security modes globally, e.g. to ensure that OpcLabs.EasyOpc.UA.Engine.UAMessageSecurityModes.SecurityNone cannot be used.

This method or property does not throw any exceptions, aside from execution exceptions such as System.Threading.ThreadAbortException or System.OutOfMemoryException.

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also