setSecurityModel
Description
setSecurityModel(
sets both
the uaClient
,'Best')MessageSecurityMode
and ChannelSecurityPolicy
properties of the OPC UA client uaClient
to the best possible security
configuration available for the server. The client attempts to retrieve available endpoints
from the server if those are not yet retrieved.
setSecurityModel(
sets the uaClient
,messageMode
,channelPolicy
)MessageSecurityMode
and
ChannelSecurityPolicy
properties of OPC UA client
uaClient
to the specified messageMode
and
channelPolicy
, respectively. If a matching endpoint cannot be found in
the list of known endpoints, an error occurs.
Note
Security Considerations: To enable a secure communication with an OPC UA server, use a strong channel security policy and message security mode.
You can expose your system to security risks when you set the
MessageSecurityMode
and
ChannelSecurityPolicy
to "None"
. Use this
setting only in a trusted environment.
If you need to connect to an OPC UA server that does not support a security policy, request the server administrator to enable a strong channel security policy and message security mode for the server. These settings enable encryption and authentication and safeguard your data and operations.