QOpcUaX509ExtensionExtendedKeyUsage Class

Class for X509 extended key usage. More...

Header: #include <QOpcUaX509ExtensionExtendedKeyUsage>
CMake: find_package(Qt6 REQUIRED COMPONENTS OpcUa)
target_link_libraries(mytarget PRIVATE Qt6::OpcUa)
qmake: QT += opcua
Inherits: QOpcUaX509Extension

Public Types

enum class KeyUsage { TlsWebServerAuthentication, TlsWebClientAuthentication, SignExecutableCode, EmailProtection }

Public Functions

QOpcUaX509ExtensionExtendedKeyUsage()
QOpcUaX509ExtensionExtendedKeyUsage(const QOpcUaX509ExtensionExtendedKeyUsage &rhs)
virtual ~QOpcUaX509ExtensionExtendedKeyUsage()
bool keyUsage(QOpcUaX509ExtensionExtendedKeyUsage::KeyUsage keyUsage) const
void setKeyUsage(QOpcUaX509ExtensionExtendedKeyUsage::KeyUsage keyUsage, bool enable = true)
QOpcUaX509ExtensionExtendedKeyUsage &operator=(const QOpcUaX509ExtensionExtendedKeyUsage &rhs)
bool operator==(const QOpcUaX509ExtensionExtendedKeyUsage &rhs) const

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.

Member Type Documentation

enum class QOpcUaX509ExtensionExtendedKeyUsage::KeyUsage

Enum with entry types for X509ExtensionExtendedKeyUsage.

ConstantValueDescription
QOpcUaX509ExtensionExtendedKeyUsage::KeyUsage::TlsWebServerAuthentication0Permits TLS webserver Authentication
QOpcUaX509ExtensionExtendedKeyUsage::KeyUsage::TlsWebClientAuthentication1Permits TLS client authentication
QOpcUaX509ExtensionExtendedKeyUsage::KeyUsage::SignExecutableCode2Permits signature of executable code
QOpcUaX509ExtensionExtendedKeyUsage::KeyUsage::EmailProtection3Permits signing emails

Member Function Documentation

QOpcUaX509ExtensionExtendedKeyUsage::QOpcUaX509ExtensionExtendedKeyUsage()

Constructs a X509ExtensionExtendedKeyUsage.

QOpcUaX509ExtensionExtendedKeyUsage::QOpcUaX509ExtensionExtendedKeyUsage(const QOpcUaX509ExtensionExtendedKeyUsage &rhs)

Constructs a X509ExtensionExtendedKeyUsage from rhs.

[virtual noexcept] QOpcUaX509ExtensionExtendedKeyUsage::~QOpcUaX509ExtensionExtendedKeyUsage()

Destructs a X509ExtensionExtendedKeyUsage.

bool QOpcUaX509ExtensionExtendedKeyUsage::keyUsage(QOpcUaX509ExtensionExtendedKeyUsage::KeyUsage keyUsage) const

Returns the key usage flag for keyUsage.

See also setKeyUsage().

void QOpcUaX509ExtensionExtendedKeyUsage::setKeyUsage(QOpcUaX509ExtensionExtendedKeyUsage::KeyUsage keyUsage, bool enable = true)

Sets the key usage flag in keyUsage to enable.

See also keyUsage().

QOpcUaX509ExtensionExtendedKeyUsage &QOpcUaX509ExtensionExtendedKeyUsage::operator=(const QOpcUaX509ExtensionExtendedKeyUsage &rhs)

Sets the values from rhs in this X509ExtensionExtendedKeyUsage.

bool QOpcUaX509ExtensionExtendedKeyUsage::operator==(const QOpcUaX509ExtensionExtendedKeyUsage &rhs) const

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