QSslError Class
La classe QSslError rappresenta un errore SSL. Maggiori informazioni...
| Intestazione: | #include <QSslError> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Network) target_link_libraries(mytarget PRIVATE Qt6::Network) |
| qmake: | QT += network |
- Elenco di tutti i membri, compresi quelli ereditati
- QSslError fa parte dell'API di programmazione di rete e delle classi condivise implicitamente.
Nota: tutte le funzioni di questa classe sono rientranti.
Tipi pubblici
| enum | SslError { NoError, UnableToGetIssuerCertificate, UnableToDecryptCertificateSignature, UnableToDecodeIssuerPublicKey, CertificateSignatureFailed, …, OcspStatusUnknown } |
Funzioni pubbliche
| 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=(const QSslError &other) |
| bool | operator==(const QSslError &other) const |
Descrizione dettagliata
QSslError fornisce una semplice API per la gestione degli errori durante l'handshake SSL di QSslSocket.
Vedi anche QSslSocket, QSslCertificate e QSslCipher.
Documentazione sui tipi dei membri
enum QSslError::SslError
Descrive tutti gli errori riconosciuti che possono verificarsi durante un handshake SSL.
| Costante | Valore |
|---|---|
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::CertificateStatusUnknown | 25 |
QSslError::OcspNoResponseFound | 26 |
QSslError::OcspMalformedRequest | 27 |
QSslError::OcspMalformedResponse | 28 |
QSslError::OcspInternalError | 29 |
QSslError::OcspTryLater | 30 |
QSslError::OcspSigRequred | 31 |
QSslError::OcspUnauthorized | 32 |
QSslError::OcspResponseCannotBeTrusted | 33 |
QSslError::OcspResponseCertIdUnknown | 34 |
QSslError::OcspResponseExpired | 35 |
QSslError::OcspStatusUnknown | 36 |
Vedi anche QSslError::errorString().
Documentazione delle funzioni membro
QSslError::QSslError()
Crea un oggetto QSslError senza errori e con il certificato predefinito.
[explicit] QSslError::QSslError(QSslError::SslError error)
Crea un oggetto QSslError. L'argomento specifica l'error e verificatasi.
QSslError::QSslError(QSslError::SslError error, const QSslCertificate &certificate)
Crea un oggetto QSslError. I due argomenti specificano l'error che si è verificato e a quale certificate si riferisce l'errore.
Vedi anche QSslCertificate.
QSslError::QSslError(const QSslError &other)
Crea una copia identica di other.
[noexcept] QSslError::~QSslError()
Elimina l'oggetto ` QSslError `.
QSslCertificate QSslError::certificate() const
Restituisce il certificato associato a questo errore oppure un certificato nullo se l'errore non è correlato ad alcun certificato.
Vedi anche error() e errorString().
QSslError::SslError QSslError::error() const
Restituisce il tipo dell'errore.
Vedi anche errorString() e certificate().
QString QSslError::errorString() const
Restituisce una breve descrizione dell'errore, localizzata e comprensibile all'utente.
Vedi anche error() e certificate().
[noexcept] void QSslError::swap(QSslError &other)
Sostituisce questa istanza di errore con other. Questa operazione è molto veloce e non fallisce mai.
bool QSslError::operator!=(const QSslError &other) const
Restituisce ` true ` se questo errore non è uguale a ` other`; altrimenti restituisce `false`.
QSslError &QSslError::operator=(const QSslError &other)
Assegna il contenuto di ` other ` a questo errore.
bool QSslError::operator==(const QSslError &other) const
Restituisce ` true ` se questo errore è uguale a ` other`; altrimenti restituisce ` false`.
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.