QCoapSecurityConfiguration Class

Die Klasse QCoapSecurityConfiguration enthält Konfigurationsoptionen während des Authentifizierungsprozesses. Mehr...

Kopfzeile: #include <QCoapSecurityConfiguration>
CMake: find_package(Qt6 REQUIRED COMPONENTS Coap)
target_link_libraries(mytarget PRIVATE Qt6::Coap)
qmake: QT += coap

Öffentliche Funktionen

QCoapSecurityConfiguration()
QCoapSecurityConfiguration(const QCoapSecurityConfiguration &other)
QCoapSecurityConfiguration(QCoapSecurityConfiguration &&other)
~QCoapSecurityConfiguration()
QList<QSslCertificate> caCertificates() const
QString defaultCipherString() const
QList<QSslCertificate> localCertificateChain() const
QByteArray preSharedKey() const
QByteArray preSharedKeyIdentity() const
QCoapPrivateKey privateKey() const
void setCaCertificates(const QList<QSslCertificate> &certificates)
void setDefaultCipherString(const QString &cipherString)
void setLocalCertificateChain(const QList<QSslCertificate> &localChain)
void setPreSharedKey(const QByteArray &preSharedKey)
void setPreSharedKeyIdentity(const QByteArray &identity)
void setPrivateKey(const QCoapPrivateKey &key)
void swap(QCoapSecurityConfiguration &other)
QCoapSecurityConfiguration &operator=(const QCoapSecurityConfiguration &other)

Detaillierte Beschreibung

Enthält Informationen wie Client-Identität, Pre-Shared Key, Informationen über Zertifikate usw.

Dokumentation der Mitgliedsfunktionen

QCoapSecurityConfiguration::QCoapSecurityConfiguration()

Konstruiert eine neue QCoapSecurityConfiguration.

QCoapSecurityConfiguration::QCoapSecurityConfiguration(const QCoapSecurityConfiguration &other)

Kopiert die Konfiguration und den Status von other.

[noexcept] QCoapSecurityConfiguration::QCoapSecurityConfiguration(QCoapSecurityConfiguration &&other)

Move-konstruiert eine QCoapSecurityConfiguration, die auf das gleiche Objekt zeigt, auf das other gezeigt hat.

[noexcept] QCoapSecurityConfiguration::~QCoapSecurityConfiguration()

Gibt alle von QCoapSecurityConfiguration gehaltenen Ressourcen frei.

QList<QSslCertificate> QCoapSecurityConfiguration::caCertificates() const

Gibt die Zertifikatsdatenbank der Zertifizierungsstelle für diese Verbindung zurück.

Siehe auch setCaCertificates().

QString QCoapSecurityConfiguration::defaultCipherString() const

Gibt die Standard-Chiffrezeichenfolge zurück.

Siehe auch setDefaultCipherString().

QList<QSslCertificate> QCoapSecurityConfiguration::localCertificateChain() const

Gibt die Zertifikatskette zurück, die der Gegenstelle während des Handshakes vorgelegt wird.

Siehe auch setLocalCertificateChain().

QByteArray QCoapSecurityConfiguration::preSharedKey() const

Gibt den gemeinsamen Schlüssel zurück.

Siehe auch setPreSharedKey().

QByteArray QCoapSecurityConfiguration::preSharedKeyIdentity() const

Gibt die PSK-Client-Identität zurück.

Siehe auch setPreSharedKeyIdentity().

QCoapPrivateKey QCoapSecurityConfiguration::privateKey() const

Gibt den privaten Schlüssel zurück, der der Verbindung zugeordnet ist.

Siehe auch setPrivateKey() und localCertificateChain().

void QCoapSecurityConfiguration::setCaCertificates(const QList<QSslCertificate> &certificates)

Legt certificates als die Datenbank der Zertifizierungsstelle für die Verbindung fest.

Siehe auch caCertificates().

void QCoapSecurityConfiguration::setDefaultCipherString(const QString &cipherString)

Setzt die SSL-Verschlüsselungszeichenfolge auf cipherString.

Das Sicherheits-Backend (z. B. OpenSSL) enthält möglicherweise standardmäßig keine für RFC 7252 erforderlichen Chiffren. Diese Methode gibt an, welche Chiffren das Back-End verwenden soll. Um zum Beispiel die vom RFC geforderten CCM-Chiffren zu aktivieren, kann "AESCCM" als cipherString übergeben werden.

Siehe die OpenSSL-Dokumente für weitere Informationen über Chiffrierzeichenfolgen.

Siehe auch defaultCipherString().

void QCoapSecurityConfiguration::setLocalCertificateChain(const QList<QSslCertificate> &localChain)

Legt localChain als die Zertifikatskette fest, die der Gegenstelle während des Handshakes vorgelegt wird.

Siehe auch localCertificateChain().

void QCoapSecurityConfiguration::setPreSharedKey(const QByteArray &preSharedKey)

Setzt den vorher freigegebenen Schlüssel auf preSharedKey.

Siehe auch preSharedKey().

void QCoapSecurityConfiguration::setPreSharedKeyIdentity(const QByteArray &identity)

Setzt die PSK-Client-Identität (die dem Server mitgeteilt werden soll) auf identity.

Siehe auch preSharedKeyIdentity().

void QCoapSecurityConfiguration::setPrivateKey(const QCoapPrivateKey &key)

Setzt den privaten Schlüssel der Verbindung auf key.

Siehe auch privateKey() und setLocalCertificateChain().

[noexcept] void QCoapSecurityConfiguration::swap(QCoapSecurityConfiguration &other)

Tauscht diese Sicherheitskonfiguration mit other aus. Dieser Vorgang ist sehr schnell und schlägt nie fehl.

QCoapSecurityConfiguration &QCoapSecurityConfiguration::operator=(const QCoapSecurityConfiguration &other)

Kopiert die Konfiguration und den Status von other.

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.