- 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.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
- __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 function is very fast and never fails.