This class represents Online Certificate Status Protocol response. 更多...
| 頭: | #include <QOcspResponse> |
| qmake: | QT += network |
| Since: | Qt 5.13 |
該類在 Qt 5.13 引入。
| QOcspResponse (QOcspResponse && other ) | |
| QOcspResponse (const QOcspResponse & other ) | |
| QOcspResponse () | |
| QOcspResponse & | operator= (QOcspResponse && other ) |
| QOcspResponse & | operator= (const QOcspResponse & other ) |
| ~QOcspResponse () | |
| QOcspCertificateStatus | certificateStatus () const |
| class QSslCertificate | responder () const |
| QOcspRevocationReason | revocationReason () const |
| QSslCertificate | subject () const |
| void | swap (QOcspResponse & other ) |
| 枚舉類 | QOcspCertificateStatus { Good, Revoked, Unknown } |
| 枚舉類 | QOcspRevocationReason { None, Unspecified, KeyCompromise, CACompromise, AffiliationChanged, …, RemoveFromCRL } |
| bool | operator!= (const QOcspResponse & lhs , const QOcspResponse & rhs ) |
| bool | operator== (const QOcspResponse & lhs , const QOcspResponse & rhs ) |
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.
另請參閱 QSslSocket , QSslSocket::ocspResponses (), certificateStatus (), revocationReason (), responder (), subject (), QOcspCertificateStatus , QOcspRevocationReason , QSslConfiguration::setOcspStaplingEnabled (), QSslConfiguration::ocspStaplingEnabled (),和 QSslConfiguration::peerCertificate ().
Move-constructs a QOcspResponse instance.
該函數在 Qt 5.13 引入。
Copy-constructs a QOcspResponse instance.
該函數在 Qt 5.13 引入。
Creates a new response with status QOcspCertificateStatus::Unknown and revocation reason QOcspRevocationReason::None.
該函數在 Qt 5.13 引入。
另請參閱 QOcspCertificateStatus .
移動賦值 other 到此 QOcspResponse 實例。
該函數在 Qt 5.13 引入。
Copy-assigns other and returns a reference to this response.
該函數在 Qt 5.13 引入。
Destroys the response.
該函數在 Qt 5.13 引入。
Returns the certificate status.
該函數在 Qt 5.13 引入。
另請參閱 QOcspCertificateStatus .
This function returns a certificate used to sign OCSP response.
該函數在 Qt 5.13 引入。
Returns the reason for revocation.
該函數在 Qt 5.13 引入。
This function returns a certificate, for which this response was issued.
該函數在 Qt 5.13 引入。
Swaps this response with other .
該函數在 Qt 5.13 引入。
描述在綫證書狀態
| 常量 | 值 | 描述 |
|---|---|---|
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. |
該枚舉在 Qt 5.13 引入或被修改。
另請參閱 QOcspRevocationReason .
描述撤銷的原因
This enumeration describes revocation reasons, defined in RFC 5280, section 5.3.1
| 常量 | 值 |
|---|---|
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
|
該枚舉在 Qt 5.13 引入或被修改。
返迴
true
if
lhs
and
rhs
are responses for different certificates, or signed by different responders, or have different revocation reasons, or different certificate statuses.
該函數在 Qt 5.13 引入。
返迴
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.
該函數在 Qt 5.13 引入。