SecurityPolicy#

class SecurityPolicy(name)#

Bases: object

A supported OPC UA security policy, with case-insensitive name matching.

Accepts native policy names and full URIs. The AES policies also accept Aes128Sha256RsaOaep and Aes256Sha256RsaPss without hyphens.

Parameters:

name (str)

Case-insensitive canonical policy name, full URI, or supported AES alias.

Examples

>>> SecurityPolicy("Basic256Sha256").name
'Basic256Sha256'

Attributes

AES128_SHA256_RSA_OAEP

AES256_SHA256_RSA_PSS

BASIC128_RSA15

BASIC256

BASIC256_SHA256

NONE

name

The native canonical policy name.

uri

The complete OPC Foundation policy URI.

AES128_SHA256_RSA_OAEP = SecurityPolicy("Aes128-Sha256-RsaOaep")#
AES256_SHA256_RSA_PSS = SecurityPolicy("Aes256-Sha256-RsaPss")#
BASIC128_RSA15 = SecurityPolicy("Basic128Rsa15")#
BASIC256 = SecurityPolicy("Basic256")#
BASIC256_SHA256 = SecurityPolicy("Basic256Sha256")#
NONE = SecurityPolicy("None")#
name#

The native canonical policy name.

Type:

str

uri#

The complete OPC Foundation policy URI.

Type:

str