QSslError Class Reference

[ QtNetwork module]

The QSslError class provides an SSL error. 更多...

类型

方法

Special Methods


详细描述

The QSslError class provides an SSL error.

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


类型文档编制

QSslError.SslError

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

常量
QSslError.NoError 0
QSslError.UnableToGetIssuerCertificate 1
QSslError.UnableToDecryptCertificateSignature 2
QSslError.UnableToDecodeIssuerPublicKey 3
QSslError.CertificateSignatureFailed 4
QSslError.CertificateNotYetValid 5
QSslError.CertificateExpired 6
QSslError.InvalidNotBeforeField 7
QSslError.InvalidNotAfterField 8
QSslError.SelfSignedCertificate 9
QSslError.SelfSignedCertificateInChain 10
QSslError.UnableToGetLocalIssuerCertificate 11
QSslError.UnableToVerifyFirstCertificate 12
QSslError.CertificateRevoked 13
QSslError.InvalidCaCertificate 14
QSslError.PathLengthExceeded 15
QSslError.InvalidPurpose 16
QSslError.CertificateUntrusted 17
QSslError.CertificateRejected 18
QSslError.SubjectIssuerMismatch 19
QSslError.AuthorityIssuerSerialNumberMismatch 20
QSslError.NoPeerCertificate 21
QSslError.HostNameMismatch 22
QSslError.UnspecifiedError -1
QSslError.NoSslSupport 23
QSslError.CertificateBlacklisted 24

另请参阅 QSslError.errorString ().


方法文档编制

QSslError.__init__ ( self )

构造 QSslError object with no error and default certificate.

QSslError.__init__ ( self , SslError   error )

构造 QSslError 对象。 argument specifies the error that occurred.

QSslError.__init__ ( self , SslError   error , QSslCertificate   certificate )

构造 QSslError 对象。 two arguments specify the error that occurred, and which certificate the error relates to.

另请参阅 QSslCertificate .

QSslError.__init__ ( self , QSslError   other )

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.

另请参阅 error () 和 errorString ().

SslError QSslError.error ( self )

Returns the type of the error.

另请参阅 errorString () 和 certificate ().

QString QSslError.errorString ( self )

Returns a short localized human-readable description of the 错误。

另请参阅 error () 和 certificate ().

bool QSslError.__eq__ ( self , QSslError   other )

bool QSslError.__ne__ ( self , QSslError   other )