内容表

上一话题

QSslDiffieHellmanParameters

下一话题

QSslKey

QSslError

QSslError class provides an SSL error. 更多

Inheritance diagram of PySide2.QtNetwork.QSslError

概要

函数

详细描述

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

构造 QSslError object with no error and default certificate.

构造 QSslError object. The argument specifies the error that occurred.

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

另请参阅

QSslCertificate

PySide2.QtNetwork.QSslError. SslError

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

常量

描述

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

另请参阅

errorString()

PySide2.QtNetwork.QSslError. certificate ( )
返回类型

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 ( )
返回类型

SslError

Returns the type of the error.

PySide2.QtNetwork.QSslError. errorString ( )
返回类型

unicode

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

PySide2.QtNetwork.QSslError. __ne__ ( other )
参数

other QSslError

返回类型

bool

返回 true if this error is not equal to other ;否则返回 false。

PySide2.QtNetwork.QSslError. __eq__ ( other )
参数

other QSslError

返回类型

bool

返回 true if this error is equal to other ;否则返回 false .

PySide2.QtNetwork.QSslError. swap ( other )
参数

other QSslError

Swaps this error instance with other 。此函数非常快,且从不失败。