QSslError Class
QSslError クラスは SSL エラーを提供します。詳細...
ヘッダ | #include <QSslError> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Network) target_link_libraries(mytarget PRIVATE Qt6::Network) |
qmake: | QT += network |
- 継承メンバを含む全メンバのリスト
- QSslError はNetwork Programming APIおよびImplicitly Shared Classes に含まれています。
注意:このクラスの関数はすべてリエントラントです。
パブリック型
enum | SslError { NoError, UnableToGetIssuerCertificate, UnableToDecryptCertificateSignature, UnableToDecodeIssuerPublicKey, CertificateSignatureFailed, …, OcspStatusUnknown } |
パブリック関数
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 |
詳細説明
QSslError はQSslSocket の SSL ハンドシェイク中のエラーを管理するためのシンプルな API を提供します。
QSslSocket 、QSslCertificate 、QSslCipherも参照してください 。
メンバ型ドキュメント
enum QSslError::SslError
SSL ハンドシェイク中に発生する可能性のある、認識された全てのエラーについて説明します。
定数 | 値 |
---|---|
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 |
QSslError::errorString()も参照してください 。
メンバ関数のドキュメント
QSslError::QSslError()
エラーなしでデフォルトの証明書を持つ QSslError オブジェクトを構築します。
[explicit]
QSslError::QSslError(QSslError::SslError error)
QSslError オブジェクトを構築します。引数は発生したerror を指定する。
QSslError::QSslError(QSslError::SslError error, const QSslCertificate &certificate)
QSslError オブジェクトを構築する。2つの引数は、発生したerror と、どのcertificate に関連するエラーかを指定します。
QSslCertificateも参照してください 。
QSslError::QSslError(const QSslError &other)
other の同一コピーを作成する。
[noexcept]
QSslError::~QSslError()
QSslError オブジェクトを破棄する。
QSslCertificate QSslError::certificate() const
このエラーに関連付けられた証明書、あるいはエラーがどの証明書にも関連していない場合は NULL の証明書を返します。
error() およびerrorString()も参照 。
QSslError::SslError QSslError::error() const
エラーの型を返す。
errorString() およびcertificate()も参照 。
QString QSslError::errorString() const
地域化された、人間が読める短いエラーの説明を返します。
error() およびcertificate()も参照 。
[noexcept]
void QSslError::swap(QSslError &other)
このエラー・インスタンスをother と交換する。この操作は非常に速く、失敗することはない。
bool QSslError::operator!=(const QSslError &other) const
このエラーがother と等しくない場合はtrue
を返し、そうでない場合は false を返す。
QSslError &QSslError::operator=(const QSslError &other)
other の内容をこのエラーに割り当てる。
bool QSslError::operator==(const QSslError &other) const
このエラーがother と等しい場合はtrue
を返し、そうでない場合はfalse
を返す。
© 2025 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.