PySide6.QtNetwork.QOcspResponse

class QOcspResponse

This class represents Online Certificate Status Protocol response.

Details

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.

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

__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

__eq__(rhs)
Parameters:

rhsQOcspResponse

Return type:

bool

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. This operation is very fast and never fails.