QOcspResponse Class
Diese Klasse stellt die Antwort des Online Certificate Status Protocol dar. Mehr...
Kopfzeile: | #include <QOcspResponse> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Network) target_link_libraries(mytarget PRIVATE Qt6::Network) |
qmake: | QT += network |
- Liste aller Mitglieder, einschließlich geerbter Mitglieder
- QOcspResponse ist Teil der Network Programming 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 stellt den Widerrufsstatus eines Serverzertifikats dar, der vom clientseitigen Socket während des TLS-Handshakes empfangen wird. QSslSocket muss mit aktiviertem OCSP-Stapling konfiguriert werden.
Siehe auch QSslSocket, QSslSocket::ocspResponses(), certificateStatus(), revocationReason(), responder(), subject(), QOcspCertificateStatus, QOcspRevocationReason, QSslConfiguration::setOcspStaplingEnabled(), QSslConfiguration::ocspStaplingEnabled(), und QSslConfiguration::peerCertificate().
Dokumentation der Mitgliedsfunktionen
QOcspResponse::QOcspResponse()
Erstellt eine neue Antwort mit Status QOcspCertificateStatus::Unknown und Widerrufsgrund QOcspRevocationReason::None.
Siehe auch QOcspCertificateStatus.
QOcspResponse::QOcspResponse(const QOcspResponse &other)
Kopiert - konstruiert eine QOcspResponse-Instanz.
[noexcept]
QOcspResponse::QOcspResponse(QOcspResponse &&other)
Move-konstruiert eine QOcspResponse-Instanz.
[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 von OCSP-Antworten verwendet wird.
QOcspRevocationReason QOcspResponse::revocationReason() const
Gibt den Grund für den Entzug 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 mit other aus. Dieser Vorgang ist sehr schnell und schlägt nie fehl.
[noexcept]
QOcspResponse &QOcspResponse::operator=(QOcspResponse &&other)
Verschieben - weist other dieser QOcspResponse Instanz zu.
QOcspResponse &QOcspResponse::operator=(const QOcspResponse &other)
Kopieren - weist other zu und gibt einen Verweis auf diese Antwort zurück.
Verwandte Nicht-Mitglieder
enum class QOcspCertificateStatus
Beschreibt den Status des Online-Zertifikats
Konstante | Wert | Beschreibung |
---|---|---|
QOcspResponse::QOcspCertificateStatus::Good | 0 | Das Zertifikat ist nicht widerrufen, was aber nicht unbedingt bedeutet, dass das Zertifikat jemals ausgestellt wurde oder dass der Zeitpunkt, zu dem die Antwort erzeugt wurde, innerhalb des Gültigkeitsintervalls des Zertifikats liegt. |
QOcspResponse::QOcspCertificateStatus::Revoked | 1 | Dieser Status zeigt an, dass das Zertifikat widerrufen wurde (entweder dauerhaft oder vorübergehend - on hold). |
QOcspResponse::QOcspCertificateStatus::Unknown | 2 | Dieser Status zeigt an, dass der Responder keine Kenntnis über das angeforderte Zertifikat hat. |
Siehe auch QOcspRevocationReason.
enum class QOcspRevocationReason
Beschreibt den Grund für den Entzug
Diese Aufzählung beschreibt die Gründe für den Widerruf, definiert in RFC 5280, Abschnitt 5.3.1
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 oder von unterschiedlichen Antwortenden signiert wurden oder unterschiedliche Sperrgründe 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 Responder signiert wurden, denselben Widerrufsgrund und denselben Zertifikatsstatus haben.
© 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.