PySide.QtNetwork.QSslError class provides an SSL error.
PySide.QtNetwork.QSslError provides a simple API for managing errors during PySide.QtNetwork.QSslSocket ‘s SSL handshake.
| 参数: |
|
|---|
构造 PySide.QtNetwork.QSslError object with no error and default certificate.
构造 PySide.QtNetwork.QSslError object. The argument specifies the error that occurred.
构造 PySide.QtNetwork.QSslError object. The two arguments specify the error that occurred, and which certificate the error relates to.
Constructs an identical copy of other .
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 |
| 返回类型: | PySide.QtNetwork.QSslCertificate |
|---|
Returns the certificate associated with this error, or a null certificate if the error does not relate to any certificate.
| 返回类型: | PySide.QtNetwork.QSslError.SslError |
|---|
Returns the type of the error.
| 返回类型: | unicode |
|---|
Returns a short localized human-readable description of the error.
| 参数: | other – PySide.QtNetwork.QSslError |
|---|---|
| 返回类型: | PySide.QtCore.bool |
Returns true if this error is not equal to other ;否则返回 false。
| 参数: | other – PySide.QtNetwork.QSslError |
|---|---|
| 返回类型: | PySide.QtCore.bool |
Returns true if this error is equal to other ;否则返回 false。