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 |
- Liste aller Mitglieder, einschließlich vererbter Mitglieder
- QOcspResponse ist Teil der Netzwerkprogrammier-API.
Ö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) |
Verwandte Nicht-Mitglieder
| 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 wird. Bei der Konfiguration von ` QSslSocket ` muss OCSP-Stapling aktiviert sein.
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 Status des Zertifikats 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 “ durch Kopieren zu und gibt eine Referenz auf diese Antwort zurück.
Verwandte Nicht-Mitglieder
enum class QOcspCertificateStatus
Beschreibt den Online-Zertifikatsstatus
| Konstante | Wert | Beschreibung |
|---|---|---|
QOcspResponse::QOcspCertificateStatus::Good | 0 | Das 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. |
QOcspResponse::QOcspCertificateStatus::Revoked | 1 | Dieser Status zeigt an, dass das Zertifikat widerrufen wurde (entweder dauerhaft oder vorübergehend – gesperrt). |
QOcspResponse::QOcspCertificateStatus::Unknown | 2 | Dieser Status bedeutet, dass dem Antwortgeber das angeforderte Zertifikat nicht bekannt ist. |
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 eine Sperrung
| Konstante | Wert |
|---|---|
QOcspResponse::QOcspRevocationReason::None | -1 |
QOcspResponse::QOcspRevocationReason::Unspecified | 0 |
QOcspResponse::QOcspRevocationReason::KeyCompromise | 1 |
QOcspResponse::QOcspRevocationReason::CACompromise | 2 |
QOcspResponse::QOcspRevocationReason::AffiliationChanged | 3 |
QOcspResponse::QOcspRevocationReason::Superseded | 4 |
QOcspResponse::QOcspRevocationReason::CessationOfOperation | 5 |
QOcspResponse::QOcspRevocationReason::CertificateHold | 6 |
QOcspResponse::QOcspRevocationReason::RemoveFromCRL | 7 |
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.