Skip to content

Reference

OpcSecurityPolicy Members

Describes the configuration used to secure the message exchange.

Reference

OpcSecurityPolicy Members ​

Type
OpcSecurityPolicy
Namespace
Opc.UaFx
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0
Also in
Opc.UaFx.Client

Constructors ​

OpcSecurityPolicy ​

3 overloads

OverloadDescription
OpcSecurityPolicy(OpcSecurityMode)Initializes a new instance of the OpcSecurityPolicy class using the mode specified to determine the according Uri and Algorithm of the configuration to represent.
OpcSecurityPolicy(OpcSecurityMode, OpcSecurityAlgorithm)Initializes a new instance of the OpcSecurityPolicy class using the mode and algorithm specified to determine the according Uri of the configuration to represent.
OpcSecurityPolicy(OpcSecurityMode, Uri)Initializes a new instance of the OpcSecurityPolicy class using the mode and uri specified.

OpcSecurityPolicy(OpcSecurityMode) ​

Initializes a new instance of the OpcSecurityPolicy class using the mode specified to determine the according Uri and Algorithm of the configuration to represent.

csharp
public OpcSecurityPolicy(OpcSecurityMode mode)
vbnet
Public Sub New(mode As OpcSecurityMode)

Parameters

NameTypeDescription
modeOpcSecurityModeOne of the OpcSecurityMode members to define the mechanisms to secure the message exchange.

OpcSecurityPolicy(OpcSecurityMode, OpcSecurityAlgorithm) ​

Initializes a new instance of the OpcSecurityPolicy class using the mode and algorithm specified to determine the according Uri of the configuration to represent.

csharp
public OpcSecurityPolicy(OpcSecurityMode mode, OpcSecurityAlgorithm algorithm)
vbnet
Public Sub New(mode As OpcSecurityMode, algorithm As OpcSecurityAlgorithm)

Parameters

NameTypeDescription
modeOpcSecurityModeOne of the OpcSecurityMode members to define the mechanisms to secure the message exchange.
algorithmOpcSecurityAlgorithmOne of the OpcSecurityAlgorithm members to define the algorithm to use for signing and message encryption (depending on the mode specified). Using the algorithm Auto results into None for the mode None and into Basic256Sha256 for the modes Sign and SignAndEncrypt. The Algorithm is set to None in case of the algorithm Custom is used.

OpcSecurityPolicy(OpcSecurityMode, Uri) ​

Initializes a new instance of the OpcSecurityPolicy class using the mode and uri specified.

csharp
public OpcSecurityPolicy(OpcSecurityMode mode, Uri uri)
vbnet
Public Sub New(mode As OpcSecurityMode, uri As Uri)

Parameters

NameTypeDescription
modeOpcSecurityModeOne of the OpcSecurityMode members to define the mechanisms to secure the message exchange.
uriUriThe absolute URI of the security policy configuration to use which identifies the Algorithm to use for signing and message encryption (depending on the mode specified).

Exceptions

ExceptionCondition
ArgumentNullExceptionThe uri is a null reference (Nothing in Visual Basic).

Fields ​

BaseUri ​

static

Provides the base URI used by all security policies to refer to the according OpcSecurityAlgorithm they use.

csharp
public static readonly Uri BaseUri
vbnet
Public Shared ReadOnly BaseUri As Uri

Field value

Uri

Properties ​

Algorithm ​

Gets the OpcSecurityAlgorithm used to encrypt messages using the current OpcSecurityPolicy configuration.

csharp
public OpcSecurityAlgorithm Algorithm { get; }
vbnet
Public ReadOnly Property Algorithm As OpcSecurityAlgorithm

Property value

OpcSecurityAlgorithm

One of the members defined by the OpcSecurityAlgorithm enumeration or Custom in case there Uri does not refer to a known algorithm.

Level ​

Gets an ordinal value to order and classify the current OpcSecurityPolicy accordingly to others and their security configuration.

csharp
public int Level { get; }
vbnet
Public ReadOnly Property Level As Integer

Property value

Int32

A positive int to identify the most secure policy. The policy with the highest Level is also the most secure.

Mode ​

Gets the mechanism used to secure the message exchange using the current OpcSecurityPolicy configuration.

csharp
public OpcSecurityMode Mode { get; }
vbnet
Public ReadOnly Property Mode As OpcSecurityMode

Property value

OpcSecurityMode

One of the members defined by the OpcSecurityMode enumeration. The value Invalid in case of an invalid OpcSecurityPolicy configuration.

Uri ​

Gets the URI which expresses the Algorithm used for message encryption using the current OpcSecurityPolicy configuration.

csharp
public Uri Uri { get; }
vbnet
Public ReadOnly Property Uri As Uri

Property value

Uri

An instance of the Uri class which identifies the Algorithm used for message encryption.