OpcSecurityPolicy Members

Namespace: Opc.UaFx
Assemblies: Opc.UaFx.Advanced.dll, Opc.UaFx.Advanced.dll
The OpcSecurityPolicy type exposes the following members.

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.

C#

public OpcSecurityPolicy(OpcSecurityMode mode)


Parameters

mode OpcSecurityMode

One 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.

C#

public OpcSecurityPolicy(OpcSecurityMode mode, OpcSecurityAlgorithm algorithm)


Parameters

mode OpcSecurityMode

One of the OpcSecurityMode members to define the mechanisms to secure the message exchange.

algorithm OpcSecurityAlgorithm

One 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 an automatically determined value of the Algorithm property considering the mode specified. 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.

C#

public OpcSecurityPolicy(OpcSecurityMode mode, Uri uri)


Parameters

mode OpcSecurityMode

One of the OpcSecurityMode members to define the mechanisms to secure the message exchange.

uri Uri

The 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

ArgumentNullException

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

BaseUri

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

C#

public static readonly Uri BaseUri


Field Value
Uri

Algorithm

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

C#

public OpcSecurityAlgorithm Algorithm { get; }


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.

C#

public int Level { get; }


Property Value

Int32

A positive Int32 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.

C#

public OpcSecurityMode Mode { get; }


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.

C#

public Uri Uri { get; }


Property Value

Uri

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