QSslError Class

QSslError クラスは SSL エラーを提供します。詳細...

ヘッダ #include <QSslError>
CMake: find_package(Qt6 REQUIRED COMPONENTS Network)
target_link_libraries(mytarget PRIVATE Qt6::Network)
qmake: QT += network

注意:このクラスの関数はすべてリエントラントです。

パブリック型

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 を提供します。

QSslSocketQSslCertificateQSslCipherも参照してください

メンバ型ドキュメント

enum QSslError::SslError

SSL ハンドシェイク中に発生する可能性のある、認識された全てのエラーについて説明します。

定数
QSslError::NoError0
QSslError::UnableToGetIssuerCertificate1
QSslError::UnableToDecryptCertificateSignature2
QSslError::UnableToDecodeIssuerPublicKey3
QSslError::CertificateSignatureFailed4
QSslError::CertificateNotYetValid5
QSslError::CertificateExpired6
QSslError::InvalidNotBeforeField7
QSslError::InvalidNotAfterField8
QSslError::SelfSignedCertificate9
QSslError::SelfSignedCertificateInChain10
QSslError::UnableToGetLocalIssuerCertificate11
QSslError::UnableToVerifyFirstCertificate12
QSslError::CertificateRevoked13
QSslError::InvalidCaCertificate14
QSslError::PathLengthExceeded15
QSslError::InvalidPurpose16
QSslError::CertificateUntrusted17
QSslError::CertificateRejected18
QSslError::SubjectIssuerMismatch19
QSslError::AuthorityIssuerSerialNumberMismatch20
QSslError::NoPeerCertificate21
QSslError::HostNameMismatch22
QSslError::UnspecifiedError-1
QSslError::NoSslSupport23
QSslError::CertificateBlacklisted24
QSslError::CertificateStatusUnknown25
QSslError::OcspNoResponseFound26
QSslError::OcspMalformedRequest27
QSslError::OcspMalformedResponse28
QSslError::OcspInternalError29
QSslError::OcspTryLater30
QSslError::OcspSigRequred31
QSslError::OcspUnauthorized32
QSslError::OcspResponseCannotBeTrusted33
QSslError::OcspResponseCertIdUnknown34
QSslError::OcspResponseExpired35
QSslError::OcspStatusUnknown36

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.