PySide6.QtNetwork.QOcspResponse¶
- class QOcspResponse¶
This class represents Online Certificate Status Protocol response. More…
Synopsis¶
Methods¶
def
__init__()def
__ne__()def
__eq__()def
responder()def
subject()def
swap()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description¶
The
QOcspResponseclass represents the revocation status of a server’s certificate, received by the client-side socket during the TLS handshake.QSslSocketmust be configured with OCSP stapling enabled.See also
QSslSocketocspResponses()certificateStatus()revocationReason()responder()subject()QOcspCertificateStatusQOcspRevocationReasonsetOcspStaplingEnabled()ocspStaplingEnabled()peerCertificate()- __init__()¶
Creates a new response with status
Unknownand revocation reasonNone.See also
QOcspCertificateStatus- __init__(other)
- Parameters:
other –
QOcspResponse
Copy-constructs a
QOcspResponseinstance.- certificateStatus()¶
- Return type:
QOcspCertificateStatus
Returns the certificate status.
See also
QOcspCertificateStatus- __ne__(rhs)¶
- Parameters:
rhs –
QOcspResponse- Return type:
bool
Returns
trueiflhsandrhsare responses for different certificates, or signed by different responders, or have different revocation reasons, or different certificate statuses.- __eq__(rhs)¶
- Parameters:
rhs –
QOcspResponse- Return type:
bool
Returns
trueiflhsandrhsare the responses for the same certificate, signed by the same responder, have the same revocation reason and the same certificate status.- responder()¶
- Return type:
This function returns a certificate used to sign OCSP response.
- revocationReason()¶
- Return type:
QOcspRevocationReason
Returns the reason for revocation.
- subject()¶
- Return type:
This function returns a certificate, for which this response was issued.
- swap(other)¶
- Parameters:
other –
QOcspResponse
Swaps this response with
other. This operation is very fast and never fails.