QSslError Class
A classe QSslError representa um erro de SSL. Mais...
| Cabeçalho: | #include <QSslError> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Network) target_link_libraries(mytarget PRIVATE Qt6::Network) |
| qmake: | QT += network |
- Lista de todos os membros, incluindo os herdados
- QSslError faz parte da API de Programação de Rede e das Classes Compartilhadas Implicitamente.
Observação: Todas as funções desta classe são reentrantes.
Tipos públicos
| enum | SslError { NoError, UnableToGetIssuerCertificate, UnableToDecryptCertificateSignature, UnableToDecodeIssuerPublicKey, CertificateSignatureFailed, …, OcspStatusUnknown } |
Funções públicas
| 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 |
Descrição detalhada
QSslError fornece uma API simples para gerenciar erros durante o handshake SSL do QSslSocket.
Veja também QSslSocket, QSslCertificate e QSslCipher.
Documentação dos tipos de membros
enum QSslError::SslError
Descreve todos os erros reconhecidos que podem ocorrer durante um handshake SSL.
| Constante | Valor |
|---|---|
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 |
Veja também QSslError::errorString().
Documentação da função membro
QSslError::QSslError()
Cria um objeto QSslError sem erros e com o certificado padrão.
[explicit] QSslError::QSslError(QSslError::SslError error)
Cria um objeto QSslError. O argumento especifica o erro de segurança do SSL ( error ) que ocorreu.
QSslError::QSslError(QSslError::SslError error, const QSslCertificate &certificate)
Cria um objeto QSslError. Os dois argumentos especificam o error que ocorreu e a qual certificate o erro está relacionado.
Veja também QSslCertificate.
QSslError::QSslError(const QSslError &other)
Cria uma cópia idêntica de other.
[noexcept] QSslError::~QSslError()
Destrói o objeto ` QSslError `.
QSslCertificate QSslError::certificate() const
Retorna o certificado associado a esse erro ou um certificado nulo, caso o erro não esteja relacionado a nenhum certificado.
Veja também error() e errorString().
QSslError::SslError QSslError::error() const
Retorna o tipo do erro.
Veja também errorString() e certificate().
QString QSslError::errorString() const
Retorna uma breve descrição do erro, localizada e de fácil compreensão.
Veja também error() e certificate().
[noexcept] void QSslError::swap(QSslError &other)
Substitui esta instância de erro por other. Essa operação é muito rápida e nunca falha.
bool QSslError::operator!=(const QSslError &other) const
Retorna ` true ` se esse erro não for igual a ` other`; caso contrário, retorna `false`.
QSslError &QSslError::operator=(const QSslError &other)
Atribui o conteúdo de ` other ` a esse erro.
bool QSslError::operator==(const QSslError &other) const
Retorna ` true ` se esse erro for igual a ` other`; caso contrário, retorna ` 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.