QCoapSecurityConfiguration Class
QCoapSecurityConfiguration クラスは、認証プロセス中の設定オプションを保持します。詳細...
| ヘッダー: | #include <QCoapSecurityConfiguration> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Coap) target_link_libraries(mytarget PRIVATE Qt6::Coap) |
| qmake: | QT += coap |
パブリック関数
| QCoapSecurityConfiguration() | |
| QCoapSecurityConfiguration(const QCoapSecurityConfiguration &other) | |
| QCoapSecurityConfiguration(QCoapSecurityConfiguration &&other) | |
| ~QCoapSecurityConfiguration() | |
| QList<QSslCertificate> | caCertificates() const |
| QString | defaultCipherString() const |
| QList<QSslCertificate> | localCertificateChain() const |
| QByteArray | preSharedKey() const |
| QByteArray | preSharedKeyIdentity() const |
| QCoapPrivateKey | privateKey() const |
| void | setCaCertificates(const QList<QSslCertificate> &certificates) |
| void | setDefaultCipherString(const QString &cipherString) |
| void | setLocalCertificateChain(const QList<QSslCertificate> &localChain) |
| void | setPreSharedKey(const QByteArray &preSharedKey) |
| void | setPreSharedKeyIdentity(const QByteArray &identity) |
| void | setPrivateKey(const QCoapPrivateKey &key) |
| void | swap(QCoapSecurityConfiguration &other) |
| QCoapSecurityConfiguration & | operator=(const QCoapSecurityConfiguration &other) |
メンバ関数のドキュメント
QCoapSecurityConfiguration::QCoapSecurityConfiguration()
新しい QCoapSecurityConfiguration を作成します。
QCoapSecurityConfiguration::QCoapSecurityConfiguration(const QCoapSecurityConfiguration &other)
other の設定と状態をコピーします。
[noexcept] QCoapSecurityConfiguration::QCoapSecurityConfiguration(QCoapSecurityConfiguration &&other)
QCoapSecurityConfiguration をムーブコンストラクタで生成し、other が指していたのと同じオブジェクトを指すようにします。
[noexcept] QCoapSecurityConfiguration::~QCoapSecurityConfiguration()
QCoapSecurityConfiguration が保持しているリソースをすべて解放します。
QList<QSslCertificate> QCoapSecurityConfiguration::caCertificates() const
この接続の認証局証明書データベースを返します。
setCaCertificates()も参照してください 。
QString QCoapSecurityConfiguration::defaultCipherString() const
デフォルトの暗号化文字列を返します。
setDefaultCipherString()も参照してください 。
QList<QSslCertificate> QCoapSecurityConfiguration::localCertificateChain() const
ハンドシェイク中に相手側に提示する証明書チェーンを返します。
setLocalCertificateChain()も参照してください 。
QByteArray QCoapSecurityConfiguration::preSharedKey() const
事前共有鍵を返します。
setPreSharedKey()も参照してください 。
QByteArray QCoapSecurityConfiguration::preSharedKeyIdentity() const
PSKクライアントのIDを返します。
setPreSharedKeyIdentity()も参照してください 。
QCoapPrivateKey QCoapSecurityConfiguration::privateKey() const
その接続に割り当てられた秘密鍵を返します。
setPrivateKey() およびlocalCertificateChain()も参照してください 。
void QCoapSecurityConfiguration::setCaCertificates(const QList<QSslCertificate> &certificates)
certificates を、その接続の認証局データベースとして設定します。
caCertificates()も参照してください 。
void QCoapSecurityConfiguration::setDefaultCipherString(const QString &cipherString)
SSL 暗号スイートを `cipherString` に設定します。
セキュリティバックエンド(OpenSSLなど)には、デフォルトではRFC 7252で要求される暗号が含まれていない場合があります。このメソッドは、バックエンドが使用するべき暗号を指定します。例えば、RFCで要求されるCCM暗号を有効にするには、「AESCCM」をcipherString として指定します。
暗号文字列の詳細については、OpenSSLのドキュメントを参照してください。
defaultCipherString()も参照してください 。
void QCoapSecurityConfiguration::setLocalCertificateChain(const QList<QSslCertificate> &localChain)
ハンドシェイク中に相手側に提示する証明書チェーンとして、localChain を設定します。
localCertificateChain()も参照してください 。
void QCoapSecurityConfiguration::setPreSharedKey(const QByteArray &preSharedKey)
事前共有鍵を「preSharedKey 」に設定します。
preSharedKey()も参照してください 。
void QCoapSecurityConfiguration::setPreSharedKeyIdentity(const QByteArray &identity)
PSKクライアントの識別情報(サーバーに通知されるもの)を「identity 」に設定します。
preSharedKeyIdentity()も参照してください 。
void QCoapSecurityConfiguration::setPrivateKey(const QCoapPrivateKey &key)
接続の秘密鍵を `key` に設定します。
privateKey() およびsetLocalCertificateChain()も参照してください 。
[noexcept] void QCoapSecurityConfiguration::swap(QCoapSecurityConfiguration &other)
このセキュリティ設定を「other 」と入れ替えます。この操作は非常に高速で、失敗することはありません。
QCoapSecurityConfiguration &QCoapSecurityConfiguration::operator=(const QCoapSecurityConfiguration &other)
other の設定と状態をコピーします。
© 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.