PySide6.QtNetwork.QSslError¶
- class QSslError¶
The
QSslError
class provides an SSL error. More…Synopsis¶
Methods¶
def
__init__()
def
certificate()
def
error()
def
errorString()
def
__ne__()
def
__eq__()
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¶
QSslError
provides a simple API for managing errors duringQSslSocket
‘s SSL handshake.See also
- class SslError¶
Describes all recognized errors that can occur during an SSL handshake.
Constant
Description
QSslError.SslError.NoError
QSslError.SslError.UnableToGetIssuerCertificate
QSslError.SslError.UnableToDecryptCertificateSignature
QSslError.SslError.UnableToDecodeIssuerPublicKey
QSslError.SslError.CertificateSignatureFailed
QSslError.SslError.CertificateNotYetValid
QSslError.SslError.CertificateExpired
QSslError.SslError.InvalidNotBeforeField
QSslError.SslError.InvalidNotAfterField
QSslError.SslError.SelfSignedCertificate
QSslError.SslError.SelfSignedCertificateInChain
QSslError.SslError.UnableToGetLocalIssuerCertificate
QSslError.SslError.UnableToVerifyFirstCertificate
QSslError.SslError.CertificateRevoked
QSslError.SslError.InvalidCaCertificate
QSslError.SslError.PathLengthExceeded
QSslError.SslError.InvalidPurpose
QSslError.SslError.CertificateUntrusted
QSslError.SslError.CertificateRejected
QSslError.SslError.SubjectIssuerMismatch
QSslError.SslError.AuthorityIssuerSerialNumberMismatch
QSslError.SslError.NoPeerCertificate
QSslError.SslError.HostNameMismatch
QSslError.SslError.UnspecifiedError
QSslError.SslError.NoSslSupport
QSslError.SslError.CertificateBlacklisted
QSslError.SslError.CertificateStatusUnknown
QSslError.SslError.OcspNoResponseFound
QSslError.SslError.OcspMalformedRequest
QSslError.SslError.OcspMalformedResponse
QSslError.SslError.OcspInternalError
QSslError.SslError.OcspTryLater
QSslError.SslError.OcspSigRequred
QSslError.SslError.OcspUnauthorized
QSslError.SslError.OcspResponseCannotBeTrusted
QSslError.SslError.OcspResponseCertIdUnknown
QSslError.SslError.OcspResponseExpired
QSslError.SslError.OcspStatusUnknown
See also
- __init__()¶
Constructs a
QSslError
object with no error and default certificate.- __init__(error)
- Parameters:
error –
SslError
Constructs a
QSslError
object. The argument specifies theerror
that occurred.- __init__(other)
- Parameters:
other –
QSslError
Constructs an identical copy of
other
.- __init__(error, certificate)
- Parameters:
error –
SslError
certificate –
QSslCertificate
Constructs a
QSslError
object. The two arguments specify theerror
that occurred, and whichcertificate
the error relates to.See also
- certificate()¶
- Return type:
Returns the certificate associated with this error, or a null certificate if the error does not relate to any certificate.
See also
Returns the type of the error.
See also
- errorString()¶
- Return type:
str
Returns a short localized human-readable description of the error.
See also
Returns
true
if this error is not equal toother
; otherwise returns false.Returns
true
if this error is equal toother
; otherwise returnsfalse
.Swaps this error instance with
other
. This operation is very fast and never fails.