Home · All Classes · Modules

QSslError Class Reference
[QtNetwork module]

The QSslError class provides an SSL error. More...

Types

Methods

Special Methods


Detailed Description

The QSslError class provides an SSL error.

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

See also QSslSocket, QSslCertificate, and QSslCipher.


Type Documentation

QSslError.SslError

Describes all recognized errors that can occur during an SSL handshake.

ConstantValue
QSslError.NoError0
QSslError.UnableToGetIssuerCertificate1
QSslError.UnableToDecryptCertificateSignature2
QSslError.UnableToDecodeIssuerPublicKey3
QSslError.CertificateSignatureFailed4
QSslError.CertificateNotYetValid5
QSslError.CertificateExpired6
QSslError.InvalidNotBeforeField7
QSslError.InvalidNotAfterField8
QSslError.SelfSignedCertificate9
QSslError.SelfSignedCertificateInChain10
QSslError.UnableToGetLocalIssuerCertificate11
QSslError.UnableToVerifyFirstCertificate12
QSslError.CertificateRevoked13
QSslError.InvalidCaCertificate14
QSslError.PathLengthExceeded15
QSslError.InvalidPurpose16
QSslError.CertificateUntrusted17
QSslError.CertificateRejected18
QSslError.SubjectIssuerMismatch19
QSslError.AuthorityIssuerSerialNumberMismatch20
QSslError.NoPeerCertificate21
QSslError.HostNameMismatch22
QSslError.UnspecifiedError-1
QSslError.NoSslSupport23

See also QSslError.errorString().


Method Documentation

QSslError.__init__ (self)

Constructs a QSslError object with no error and default certificate.

QSslError.__init__ (self, SslError)

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

QSslError.__init__ (self, SslError, QSslCertificate)

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

See also QSslCertificate.

QSslError.__init__ (self, QSslError)

Constructs an identical copy of other.

QSslCertificate QSslError.certificate (self)

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

See also error() and errorString().

SslError QSslError.error (self)

Returns the type of the error.

See also errorString() and certificate().

QString QSslError.errorString (self)

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

See also error() and certificate().

bool QSslError.__eq__ (self, QSslError)

bool QSslError.__ne__ (self, QSslError)


PyQt 4.7.3 for X11Copyright © Riverbank Computing Ltd and Nokia 2010Qt 4.6.2