QOcspResponse Class▲
-
Header: QOcspResponse
-
Since: Qt 5.13
-
CMake:
find_package(Qt6 REQUIRED COMPONENTS Network)
target_link_libraries(mytarget PRIVATE Qt6::Network)
-
qmake: QT += network
-
Group: QOcspResponse is part of Network Programming API, ssl
Detailed Description▲
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.
See Also▲
Member Function Documentation▲
[since 5.13] QOcspResponse::QOcspResponse()▲
Creates a new response with status QOcspCertificateStatus::Unknown and revocation reason QOcspRevocationReason::None.
This function was introduced in Qt 5.13.
See Also▲
See also QOcspCertificateStatus
[since 5.13] QOcspResponse::QOcspResponse(const QOcspResponse &other)▲
Copy-constructs a QOcspResponse instance.
This function was introduced in Qt 5.13.
[since 5.13] QOcspResponse::QOcspResponse(QOcspResponse &&other)▲
Move-constructs a QOcspResponse instance.
This function was introduced in Qt 5.13.
[since 5.13] QOcspResponse::~QOcspResponse()▲
Destroys the response.
This function was introduced in Qt 5.13.
[since 5.13] QOcspCertificateStatus QOcspResponse::certificateStatus() const▲
Returns the certificate status.
This function was introduced in Qt 5.13.
See Also▲
See also QOcspCertificateStatus
[since 5.13] class QSslCertificate QOcspResponse::responder() const▲
This function returns a certificate used to sign OCSP response.
This function was introduced in Qt 5.13.
[since 5.13] QOcspRevocationReason QOcspResponse::revocationReason() const▲
Returns the reason for revocation.
This function was introduced in Qt 5.13.
[since 5.13] QSslCertificate QOcspResponse::subject() const▲
This function returns a certificate, for which this response was issued.
This function was introduced in Qt 5.13.
[since 5.13] void QOcspResponse::swap(QOcspResponse &other)▲
Swaps this response with other.
This function was introduced in Qt 5.13.
[since 5.13] QOcspResponse &QOcspResponse::operator=(const QOcspResponse &other)▲
Copy-assigns other and returns a reference to this response.
This function was introduced in Qt 5.13.
[since 5.13] QOcspResponse &QOcspResponse::operator=(QOcspResponse &&other)▲
Move-assigns other to this QOcspResponse instance.
This function was introduced in Qt 5.13.
Related Non-Members▲
[since 5.13] enum QOcspCertificateStatus▲
Describes the Online Certificate Status
Constant |
Value |
Description |
---|---|---|
QOcspResponse::QOcspCertificateStatus::Good |
0 |
The certificate is not revoked, but this does not necessarily mean that the certificate was ever issued or that the time at which the response was produced is within the certificate's validity interval. |
QOcspResponse::QOcspCertificateStatus::Revoked |
1 |
This state indicates that the certificate has been revoked (either permanently or temporarily - on hold). |
QOcspResponse::QOcspCertificateStatus::Unknown |
2 |
This state indicates that the responder doesn't know about the certificate being requested. |
This enum was introduced or modified in Qt 5.13.
See Also▲
See also QOcspRevocationReason
[since 5.13] enum QOcspRevocationReason▲
Describes the reason for revocation
This enumeration describes revocation reasons, defined in RFC 5280, section 5.3.1
Constant |
|
---|---|
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 |
This enum was introduced or modified in Qt 5.13.
[since 5.13] 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.
This function was introduced in Qt 5.13.
[since 5.13] 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.
This function was introduced in Qt 5.13.