QOpcUaX509ExtensionKeyUsage Class

Class for X509 extended key usage. 更多...

头: #include <QOpcUaX509ExtensionKeyUsage>
qmake: QT += opcua
Since: Qt 5.14
继承: QOpcUaX509Extension

公共类型

enum class KeyUsage { DigitalSignature, NonRepudiation, KeyEncipherment, DataEncipherment, KeyAgreement, …, DecipherOnly }

公共函数

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

详细描述

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.

成员类型文档编制

enum class QOpcUaX509ExtensionKeyUsage:: KeyUsage

Enum with entry types for X509ExtensionKeyUsage.

常量 描述
QOpcUaX509ExtensionKeyUsage::KeyUsage::DigitalSignature 0 Permits digital signatures
QOpcUaX509ExtensionKeyUsage::KeyUsage::NonRepudiation 1 Permits non repudiation
QOpcUaX509ExtensionKeyUsage::KeyUsage::KeyEncipherment 2 Permits key encipherment
QOpcUaX509ExtensionKeyUsage::KeyUsage::DataEncipherment 3 Permits data encipherment
QOpcUaX509ExtensionKeyUsage::KeyUsage::KeyAgreement 4 Permits key agreement
QOpcUaX509ExtensionKeyUsage::KeyUsage::CertificateSigning 5 Permits certificate signing
QOpcUaX509ExtensionKeyUsage::KeyUsage::CrlSigning 6 Permits CRL signing
QOpcUaX509ExtensionKeyUsage::KeyUsage::EnciptherOnly 7 Restricts to encipherment only
QOpcUaX509ExtensionKeyUsage::KeyUsage::DecipherOnly 8 Restricts to decipher only

成员函数文档编制

QOpcUaX509ExtensionKeyUsage:: QOpcUaX509ExtensionKeyUsage (const QOpcUaX509ExtensionKeyUsage & rhs )

Constructs a X509ExtensionKeyUsage from rhs .

QOpcUaX509ExtensionKeyUsage:: QOpcUaX509ExtensionKeyUsage ()

Constructs a X509ExtensionKeyUsage.

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

设置值从 rhs in this X509ExtensionKeyUsage.

[虚拟] QOpcUaX509ExtensionKeyUsage:: ~QOpcUaX509ExtensionKeyUsage ()

Destructs a X509ExtensionKeyUsage.

bool QOpcUaX509ExtensionKeyUsage:: keyUsage ( QOpcUaX509ExtensionKeyUsage::KeyUsage keyUsage ) const

Returns the key usage flag for keyUsage .

另请参阅 setKeyUsage ().

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

Sets the key usage flag in keyUsage to enable .

另请参阅 keyUsage ().

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

返回 true if this X509ExtensionKeyUsage has the same value as rhs .