def
__eq__
(other)
def
__ne__
(other)
def
certificate
()
def
error
()
def
errorString
()
def
swap
(other)
QSslErrorprovides a simple API for managing errors duringQSslSocket‘s SSL handshake.
QSslError
¶
QSslError(error)
QSslError(error, certificate)
QSslError(other)
- param certificate
- param other
- 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.
另请参阅
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 |
另请参阅
PySide2.QtNetwork.QSslError.
certificate
(
)
¶
Returns the certificate associated with this error, or a null certificate if the error does not relate to any certificate.
另请参阅
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。