QSslError

The QSslError class provides an SSL error. More

Inheritance diagram of PySide2.QtNetwork.QSslError

Synopsis

Functions

Detailed Description

QSslError provides a simple API for managing errors during QSslSocket ‘s SSL handshake.

class QSslError

QSslError(error)

QSslError(error, certificate)

QSslError(other)

param certificate

QSslCertificate

param other

QSslError

param error

SslError

Constructs a QSslError object with no error and default certificate.

Constructs a QSslError object. The argument specifies the error that occurred.

Constructs a QSslError object. The two arguments specify the error that occurred, and which certificate the error relates to.

See also

QSslCertificate

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.OcspNoResponseFound

QSslError.OcspMalformedRequest

QSslError.OcspMalformedResponse

QSslError.OcspInternalError

QSslError.OcspTryLater

QSslError.OcspSigRequred

QSslError.OcspUnauthorized

QSslError.OcspResponseCannotBeTrusted

QSslError.OcspResponseCertIdUnknown

QSslError.OcspResponseExpired

QSslError.OcspStatusUnknown

See also

errorString()

PySide2.QtNetwork.QSslError.certificate()
Return type

QSslCertificate

Returns the certificate associated with this error, or a null certificate if the error does not relate to any certificate.

PySide2.QtNetwork.QSslError.error()
Return type

SslError

Returns the type of the error.

PySide2.QtNetwork.QSslError.errorString()
Return type

unicode

Returns a short localized human-readable description of the error.

PySide2.QtNetwork.QSslError.__ne__(other)
Parameters

otherQSslError

Return type

bool

Returns true if this error is not equal to other ; otherwise returns false.

PySide2.QtNetwork.QSslError.__eq__(other)
Parameters

otherQSslError

Return type

bool

Returns true if this error is equal to other ; otherwise returns false .

PySide2.QtNetwork.QSslError.swap(other)
Parameters

otherQSslError

Swaps this error instance with other . This function is very fast and never fails.