![]() |
Qt 6.x
The Qt SDK
|
This class represents Online Certificate Status Protocol response. More...
#include <qocspresponse.h>
Public Member Functions | |
QOcspResponse () | |
QOcspResponse (const QOcspResponse &other) | |
QOcspResponse (QOcspResponse &&other) noexcept | |
~QOcspResponse () | |
QOcspResponse & | operator= (const QOcspResponse &other) |
QOcspResponse & | operator= (QOcspResponse &&other) noexcept |
QOcspCertificateStatus | certificateStatus () const |
QOcspRevocationReason | revocationReason () const |
class QSslCertificate | responder () const |
QSslCertificate | subject () const |
void | swap (QOcspResponse &other) noexcept |
Friends | |
class | QTlsPrivate::TlsCryptographOpenSSL |
bool | operator== (const QOcspResponse &lhs, const QOcspResponse &rhs) |
Returns true if lhs and rhs are the responses for the same certificate, signed by the same responder, have the same revocation reason and the same certificate status. | |
bool | operator!= (const QOcspResponse &lhs, const QOcspResponse &rhs) |
Returns true if lhs and rhs are responses for different certificates, or signed by different responders, or have different revocation reasons, or different certificate statuses. | |
Q_NETWORK_EXPORT size_t | qHash (const QOcspResponse &response, size_t seed) noexcept |
This class represents Online Certificate Status Protocol response.
\inmodule QtNetwork
The QOcspResponse class represents the revocation status of a server's certificate, received by the client-side socket during the TLS handshake. QSslSocket must be configured with OCSP stapling enabled.
Definition at line 48 of file qocspresponse.h.
QOcspResponse::QOcspResponse | ( | ) |
Creates a new response with status QOcspCertificateStatus::Unknown and revocation reason QOcspRevocationReason::None.
Definition at line 86 of file qocspresponse.cpp.
|
default |
Copy-constructs a QOcspResponse instance.
|
defaultnoexcept |
Move-constructs a QOcspResponse instance.
|
default |
Destroys the response.
QOcspCertificateStatus QOcspResponse::certificateStatus | ( | ) | const |
Returns the certificate status.
Definition at line 140 of file qocspresponse.cpp.
References d.
|
default |
Copy-assigns other and returns a reference to this response.
|
defaultnoexcept |
Move-assigns other to this QOcspResponse instance.
QSslCertificate QOcspResponse::responder | ( | ) | const |
This function returns a certificate used to sign OCSP response.
Definition at line 160 of file qocspresponse.cpp.
References QOcspResponsePrivate::signerCert.
QOcspRevocationReason QOcspResponse::revocationReason | ( | ) | const |
Returns the reason for revocation.
Definition at line 150 of file qocspresponse.cpp.
References QOcspResponsePrivate::revocationReason.
QSslCertificate QOcspResponse::subject | ( | ) | const |
This function returns a certificate, for which this response was issued.
Definition at line 170 of file qocspresponse.cpp.
References QOcspResponsePrivate::subjectCert.
|
inlinenoexcept |
Swaps this response with other.
Definition at line 66 of file qocspresponse.h.
|
friend |
Returns true
if lhs and rhs are responses for different certificates, or signed by different responders, or have different revocation reasons, or different certificate statuses.
Definition at line 74 of file qocspresponse.h.
|
friend |
Returns true
if lhs and rhs are the responses for the same certificate, signed by the same responder, have the same revocation reason and the same certificate status.
Definition at line 72 of file qocspresponse.h.
|
friend |
|
friend |
Definition at line 71 of file qocspresponse.h.