![]() |
Qt 4.8
|
The QSslError class provides an SSL error. More...
#include <qsslerror.h>
Public Types | |
| enum | SslError { NoError, UnableToGetIssuerCertificate, UnableToDecryptCertificateSignature, UnableToDecodeIssuerPublicKey, CertificateSignatureFailed, CertificateNotYetValid, CertificateExpired, InvalidNotBeforeField, InvalidNotAfterField, SelfSignedCertificate, SelfSignedCertificateInChain, UnableToGetLocalIssuerCertificate, UnableToVerifyFirstCertificate, CertificateRevoked, InvalidCaCertificate, PathLengthExceeded, InvalidPurpose, CertificateUntrusted, CertificateRejected, SubjectIssuerMismatch, AuthorityIssuerSerialNumberMismatch, NoPeerCertificate, HostNameMismatch, NoSslSupport, CertificateBlacklisted, UnspecifiedError = -1 } |
| Describes all recognized errors that can occur during an SSL handshake. More... | |
Public Functions | |
| QSslCertificate | certificate () const |
| Returns the certificate associated with this error, or a null certificate if the error does not relate to any certificate. More... | |
| SslError | error () const |
| Returns the type of the error. More... | |
| QString | errorString () const |
| Returns a short localized human-readable description of the error. More... | |
| bool | operator!= (const QSslError &other) const |
| Returns true if this error is not equal to other; otherwise returns false. More... | |
| QSslError & | operator= (const QSslError &other) |
| Assigns the contents of other to this error. More... | |
| bool | operator== (const QSslError &other) const |
| Returns true if this error is equal to other; otherwise returns false. More... | |
| QSslError () | |
| Constructs a QSslError object with no error and default certificate. More... | |
| QSslError (SslError error) | |
| Constructs a QSslError object. More... | |
| QSslError (SslError error, const QSslCertificate &certificate) | |
| Constructs a QSslError object. More... | |
| QSslError (const QSslError &other) | |
| Constructs an identical copy of other. More... | |
| ~QSslError () | |
| Destroys the QSslError object. More... | |
Properties | |
| QScopedPointer< QSslErrorPrivate > | d |
The QSslError class provides an SSL error.
QSslError provides a simple API for managing errors during QSslSocket's SSL handshake.
Definition at line 58 of file qsslerror.h.
| enum QSslError::SslError |
Describes all recognized errors that can occur during an SSL handshake.
Definition at line 61 of file qsslerror.h.
| QSslError::QSslError | ( | ) |
Constructs a QSslError object with no error and default certificate.
Definition at line 122 of file qsslerror.cpp.
Referenced by operator<<().
| QSslError::QSslError | ( | SslError | error | ) |
Constructs a QSslError object.
The argument specifies the error that occurred.
Definition at line 134 of file qsslerror.cpp.
| QSslError::QSslError | ( | SslError | error, |
| const QSslCertificate & | certificate | ||
| ) |
Constructs a QSslError object.
The two arguments specify the error that occurred, and which certificate the error relates to.
Definition at line 147 of file qsslerror.cpp.
| QSslError::QSslError | ( | const QSslError & | other | ) |
Constructs an identical copy of other.
Definition at line 157 of file qsslerror.cpp.
| QSslError::~QSslError | ( | ) |
| QSslCertificate QSslError::certificate | ( | ) | const |
Returns the certificate associated with this error, or a null certificate if the error does not relate to any certificate.
Definition at line 317 of file qsslerror.cpp.
Referenced by QSslError().
| QSslError::SslError QSslError::error | ( | ) | const |
Returns the type of the error.
Definition at line 214 of file qsslerror.cpp.
Referenced by QSslError().
| QString QSslError::errorString | ( | ) | const |
Returns a short localized human-readable description of the error.
Definition at line 224 of file qsslerror.cpp.
Referenced by operator<<(), and QSslSocketBackendPrivate::startHandshake().
|
inline |
Returns true if this error is not equal to other; otherwise returns false.
Definition at line 101 of file qsslerror.h.
Assigns the contents of other to this error.
Definition at line 178 of file qsslerror.cpp.
| bool QSslError::operator== | ( | const QSslError & | other | ) | const |
Returns true if this error is equal to other; otherwise returns false.
Definition at line 192 of file qsslerror.cpp.
|
private |
Definition at line 109 of file qsslerror.h.
Referenced by certificate(), error(), errorString(), operator=(), operator==(), and QSslError().