class QOpcUaX509DistinguishedName

Information about a distinguished name item. More

Synopsis

Methods

Static functions

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description

This class is currently available as a Technology Preview, and therefore the API and functionality provided by the class may be subject to change at any time without prior notice.

QOpcUaX509DistinguishedName dn;
dn.setEntry(QOpcUaX509DistinguishedName::Type::CommonName, "QtOpcUaViewer");
dn.setEntry(QOpcUaX509DistinguishedName::Type::CountryName, "DE");
dn.setEntry(QOpcUaX509DistinguishedName::Type::LocalityName, "Berlin");
dn.setEntry(QOpcUaX509DistinguishedName::Type::StateOrProvinceName, "Berlin");
dn.setEntry(QOpcUaX509DistinguishedName::Type::OrganizationName, "The Qt Company");
class Type

Enum with entry types for X509DistinguishedName.

Constant

Description

QOpcUaX509DistinguishedName.Type.CommonName

Common name

QOpcUaX509DistinguishedName.Type.CountryName

Country name

QOpcUaX509DistinguishedName.Type.LocalityName

Locality name

QOpcUaX509DistinguishedName.Type.StateOrProvinceName

State or province name

QOpcUaX509DistinguishedName.Type.OrganizationName

Organization name

__init__()

Constructs an empty X509DistinguishedName.

__init__(arg__1)
Parameters:

arg__1QOpcUaX509DistinguishedName

Constructs a X509DistinguishedName from rhs.

entry(type)
Parameters:

typeType

Return type:

str

Returns value for a type.

See also

setEntry()

__eq__(rhs)
Parameters:

rhsQOpcUaX509DistinguishedName

Return type:

bool

Returns true if this X509DistinguishedName has the same value as rhs.

setEntry(type, value)
Parameters:
  • typeType

  • value – str

Sets the entry of type to value. Already existing types will be overwritten.

See also

entry()

static typeToOid(type)
Parameters:

typeType

Return type:

str

Returns the object id string for type.