QSslError¶
Synopsis¶
Functions¶
def
__eq__
(other)def
__ne__
(other)def
certificate
()def
error
()def
errorString
()def
swap
(other)
Detailed Description¶
QSslError
provides a simple API for managing errors duringQSslSocket
‘s SSL handshake.See also
- class PySide2.QtNetwork.QSslError¶
PySide2.QtNetwork.QSslError(error)
PySide2.QtNetwork.QSslError(error, certificate)
PySide2.QtNetwork.QSslError(other)
- param certificate:
- param other:
- param error:
Constructs a
QSslError
object with no error and default certificate.Constructs a
QSslError
object. The argument specifies theerror
that occurred.Constructs a
QSslError
object. The two arguments specify theerror
that occurred, and whichcertificate
the error relates to.See also
- PySide2.QtNetwork.QSslError.SslError¶
Describes all recognized errors that can occur during an SSL handshake.
Constant
Description
QSslError.NoError
QSslError.UnableToGetIssuerCertificate
QSslError.UnableToDecryptCertificateSignature
QSslError.UnableToDecodeIssuerPublicKey
QSslError.CertificateSignatureFailed
QSslError.CertificateNotYetValid
QSslError.CertificateExpired
QSslError.InvalidNotBeforeField
QSslError.InvalidNotAfterField
QSslError.SelfSignedCertificate
QSslError.SelfSignedCertificateInChain
QSslError.UnableToGetLocalIssuerCertificate
QSslError.UnableToVerifyFirstCertificate
QSslError.CertificateRevoked
QSslError.InvalidCaCertificate
QSslError.PathLengthExceeded
QSslError.InvalidPurpose
QSslError.CertificateUntrusted
QSslError.CertificateRejected
QSslError.SubjectIssuerMismatch
QSslError.AuthorityIssuerSerialNumberMismatch
QSslError.NoPeerCertificate
QSslError.HostNameMismatch
QSslError.UnspecifiedError
QSslError.NoSslSupport
QSslError.CertificateBlacklisted
QSslError.CertificateStatusUnknown
QSslError.OcspNoResponseFound
QSslError.OcspMalformedRequest
QSslError.OcspMalformedResponse
QSslError.OcspInternalError
QSslError.OcspTryLater
QSslError.OcspSigRequred
QSslError.OcspUnauthorized
QSslError.OcspResponseCannotBeTrusted
QSslError.OcspResponseCertIdUnknown
QSslError.OcspResponseExpired
QSslError.OcspStatusUnknown
See also
- PySide2.QtNetwork.QSslError.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
- PySide2.QtNetwork.QSslError.error()¶
- Return type:
Returns the type of the error.
See also
- PySide2.QtNetwork.QSslError.errorString()¶
- Return type:
str
Returns a short localized human-readable description of the error.
See also
- PySide2.QtNetwork.QSslError.__ne__(other)¶
- Parameters:
other –
PySide2.QtNetwork.QSslError
- Return type:
bool
Returns
true
if this error is not equal toother
; otherwise returns false.
- PySide2.QtNetwork.QSslError.__eq__(other)¶
- Parameters:
other –
PySide2.QtNetwork.QSslError
- Return type:
bool
Returns
true
if this error is equal toother
; otherwise returnsfalse
.
- PySide2.QtNetwork.QSslError.swap(other)¶
- Parameters:
other –
PySide2.QtNetwork.QSslError
Swaps this error instance with
other
. This function is very fast and never fails.
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.