Auf dieser Seite

QOcspResponse Class

Diese Klasse repräsentiert eine Antwort des Online Certificate Status Protocol. Mehr...

Header: #include <QOcspResponse>
CMake: find_package(Qt6 REQUIRED COMPONENTS Network)
target_link_libraries(mytarget PRIVATE Qt6::Network)
qmake: QT += network

Öffentliche Funktionen

QOcspResponse()
QOcspResponse(const QOcspResponse &other)
QOcspResponse(QOcspResponse &&other)
~QOcspResponse()
QOcspCertificateStatus certificateStatus() const
class QSslCertificate responder() const
QOcspRevocationReason revocationReason() const
QSslCertificate subject() const
void swap(QOcspResponse &other)
QOcspResponse &operator=(QOcspResponse &&other)
QOcspResponse &operator=(const QOcspResponse &other)
enum class QOcspCertificateStatus { Good, Revoked, Unknown }
enum class QOcspRevocationReason { None, Unspecified, KeyCompromise, CACompromise, AffiliationChanged, …, RemoveFromCRL }
bool operator!=(const QOcspResponse &lhs, const QOcspResponse &rhs)
bool operator==(const QOcspResponse &lhs, const QOcspResponse &rhs)

Detaillierte Beschreibung

Die Klasse „QOcspResponse“ repräsentiert den Widerrufsstatus eines Serverzertifikats, der vom clientseitigen Socket während des TLS-Handshakes empfangen wurde. „ QSslSocket “ muss so konfiguriert sein, dass OCSP-Stapling aktiviert ist.

Siehe auch „ QSslSocket“, „ QSslSocket::ocspResponses()“, „ certificateStatus()“, „ revocationReason()“, „ responder()“, „ subject()“, „ QOcspCertificateStatus “, „ QOcspRevocationReason “, „ QSslConfiguration::setOcspStaplingEnabled()“, „ QSslConfiguration::ocspStaplingEnabled()“ und „ QSslConfiguration::peerCertificate()“.

Dokumentation zu den Member-Funktionen

QOcspResponse::QOcspResponse()

Erstellt eine neue Antwort mit dem Status „ QOcspCertificateStatus::Unknown “ und dem Widerrufsgrund „ QOcspRevocationReason::None “.

Siehe auch „ QOcspCertificateStatus “.

QOcspResponse::QOcspResponse(const QOcspResponse &other)

Erstellt eine QOcspResponse-Instanz durch Kopieren.

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

Erstellt eine Instanz von `QOcspResponse`.

[noexcept] QOcspResponse::~QOcspResponse()

Zerstört die Antwort.

QOcspCertificateStatus QOcspResponse::certificateStatus() const

Gibt den Zertifikatsstatus zurück.

Siehe auch QOcspCertificateStatus.

class QSslCertificate QOcspResponse::responder() const

Diese Funktion gibt ein Zertifikat zurück, das zum Signieren der OCSP-Antwort verwendet wird.

QOcspRevocationReason QOcspResponse::revocationReason() const

Gibt den Grund für den Widerruf zurück.

QSslCertificate QOcspResponse::subject() const

Diese Funktion gibt ein Zertifikat zurück, für das diese Antwort ausgestellt wurde.

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

Tauscht diese Antwort gegen „ other “ aus. Dieser Vorgang ist sehr schnell und schlägt niemals fehl.

[noexcept] QOcspResponse &QOcspResponse::operator=(QOcspResponse &&other)

Weist „ other “ dieser „ QOcspResponse “-Instanz zu.

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

Weist „ other “ per Kopieren zu und gibt eine Referenz auf diese Antwort zurück.

Verwandte Nicht-Mitglieder

enum class QOcspCertificateStatus

Beschreibt den Online-Zertifikatsstatus

KonstanteWertBeschreibung
QOcspCertificateStatus::Good0Das Zertifikat ist nicht widerrufen, was jedoch nicht zwangsläufig bedeutet, dass das Zertifikat jemals ausgestellt wurde oder dass der Zeitpunkt, zu dem die Antwort generiert wurde, innerhalb des Gültigkeitszeitraums des Zertifikats liegt.
QOcspCertificateStatus::Revoked1Dieser Status zeigt an, dass das Zertifikat widerrufen wurde (entweder dauerhaft oder vorübergehend – gesperrt).
QOcspCertificateStatus::Unknown2Dieser Status bedeutet, dass der Antwortgeber das angeforderte Zertifikat nicht kennt.

Siehe auch QOcspRevocationReason.

enum class QOcspRevocationReason

Beschreibt den Grund für den Widerruf

Diese Aufzählung beschreibt die in RFC 5280, Abschnitt 5.3.1, definierten Gründe für den Widerruf

KonstanteWert
QOcspRevocationReason::None-1
QOcspRevocationReason::Unspecified0
QOcspRevocationReason::KeyCompromise1
QOcspRevocationReason::CACompromise2
QOcspRevocationReason::AffiliationChanged3
QOcspRevocationReason::Superseded4
QOcspRevocationReason::CessationOfOperation5
QOcspRevocationReason::CertificateHold6
QOcspRevocationReason::RemoveFromCRL7

bool operator!=(const QOcspResponse &lhs, const QOcspResponse &rhs)

Gibt „ true “ zurück, wenn „ lhs “ und „ rhs “ Antworten für unterschiedliche Zertifikate sind, von unterschiedlichen Ausstellern signiert wurden, unterschiedliche Sperrgründe aufweisen oder unterschiedliche Zertifikatsstatus haben.

bool operator==(const QOcspResponse &lhs, const QOcspResponse &rhs)

Gibt „ true “ zurück, wenn „ lhs “ und „ rhs “ die Antworten für dasselbe Zertifikat sind, von demselben Aussteller signiert wurden, denselben Widerrufsgrund und denselben Zertifikatsstatus aufweisen.

© 2026 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.