QOcspResponse#

This class represents Online Certificate Status Protocol response. More

New in version 5.13.

Synopsis#

Functions#

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.

class PySide6.QtNetwork.QOcspResponse#

PySide6.QtNetwork.QOcspResponse(other)

Parameters

otherPySide6.QtNetwork.QOcspResponse

Creates a new response with status Unknown and revocation reason None .

See also

QOcspCertificateStatus

Copy-constructs a QOcspResponse instance.

PySide6.QtNetwork.QOcspResponse.certificateStatus()#
Return type

QOcspCertificateStatus

Returns the certificate status.

See also

QOcspCertificateStatus

PySide6.QtNetwork.QOcspResponse.__ne__(rhs)#
Parameters

rhsPySide6.QtNetwork.QOcspResponse

Return type

bool

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.

PySide6.QtNetwork.QOcspResponse.__eq__(rhs)#
Parameters

rhsPySide6.QtNetwork.QOcspResponse

Return type

bool

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.

PySide6.QtNetwork.QOcspResponse.revocationReason()#
Return type

QOcspRevocationReason

Returns the reason for revocation.

PySide6.QtNetwork.QOcspResponse.subject()#
Return type

PySide6.QtNetwork.QSslCertificate

This function returns a certificate, for which this response was issued.

PySide6.QtNetwork.QOcspResponse.swap(other)#
Parameters

otherPySide6.QtNetwork.QOcspResponse

Swaps this response with other.