- 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
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
QSslSocket
ocspResponses()
certificateStatus()
revocationReason()
responder()
subject()
QOcspCertificateStatus
QOcspRevocationReason
setOcspStaplingEnabled()
ocspStaplingEnabled()
peerCertificate()
- __init__()¶
Creates a new response with status
Unknown
and revocation reasonNone
.See also
QOcspCertificateStatus
- __init__(other)
- Parameters:
other –
QOcspResponse
Copy-constructs a
QOcspResponse
instance.- certificateStatus()¶
- Return type:
QOcspCertificateStatus
Returns the certificate status.
See also
QOcspCertificateStatus
- __ne__(rhs)¶
- Parameters:
rhs –
QOcspResponse
- Return type:
bool
Returns
true
iflhs
andrhs
are 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
true
iflhs
andrhs
are 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
.