class QOcspResponse#

This class represents Online Certificate Status Protocol response. More

Synopsis#

Methods#

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.

__init__()#

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

See also

QOcspCertificateStatus

__init__(other)
Parameters:

otherQOcspResponse

Copy-constructs a QOcspResponse instance.

certificateStatus()#
Return type:

QOcspCertificateStatus

Returns the certificate status.

See also

QOcspCertificateStatus

__ne__(rhs)#
Parameters:

rhsQOcspResponse

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.

__eq__(rhs)#
Parameters:

rhsQOcspResponse

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.

responder()#
Return type:

QSslCertificate

This function returns a certificate used to sign OCSP response.

revocationReason()#
Return type:

QOcspRevocationReason

Returns the reason for revocation.

subject()#
Return type:

QSslCertificate

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

swap(other)#
Parameters:

otherQOcspResponse

Swaps this response with other.