The QSslError class provides an SSL error. 更多...
| 頭: | #include <QSslError> |
| qmake: | QT += network |
| Since: | Qt 4.3 |
注意: 此類的所有函數 可重入 .
| enum | SslError { NoError, UnableToGetIssuerCertificate, UnableToDecryptCertificateSignature, UnableToDecodeIssuerPublicKey, ..., CertificateBlacklisted } |
| QSslError () | |
| QSslError (QSslError::SslError error ) | |
| QSslError (QSslError::SslError error , const QSslCertificate & certificate ) | |
| QSslError (const QSslError & other ) | |
| ~QSslError () | |
| QSslCertificate | certificate () const |
| QSslError::SslError | error () const |
| QString | errorString () const |
| void | swap (QSslError & other ) |
| bool | operator!= (const QSslError & other ) const |
| QSslError & | operator= (QSslError && other ) |
| QSslError & | operator= (const QSslError & other ) |
| bool | operator== (const QSslError & other ) const |
The QSslError class provides an SSL error.
QSslError provides a simple API for managing errors during QSslSocket 's SSL handshake.
另請參閱 QSslSocket , QSslCertificate ,和 QSslCipher .
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 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 .
Constructs an identical copy of other .
銷毀 QSslError 對象。
Returns the certificate associated with this error, or a null certificate if the error does not relate to any certificate.
另請參閱 error () 和 errorString ().
返迴錯誤的類型。
另請參閱 errorString () 和 certificate ().
Returns a short localized human-readable description of the error.
另請參閱 error () 和 certificate ().
Swaps this error instance with other 。此函數非常快且從不失敗。
該函數在 Qt 5.0 引入。
返迴
true
if this error is not equal to
other
;否則返迴 false。
該函數在 Qt 4.4 引入。
移動賦值運算符。
賦值內容對於 other to this error.
該函數在 Qt 4.4 引入。
返迴
true
if this error is equal to
other
;否則返迴
false
.
該函數在 Qt 4.4 引入。