QCoapPrivateKey Class
QCoapPrivateKeyクラスは、CoAPセキュリティ・キーを管理するためのインターフェースを提供します。詳細...
ヘッダー | #include <QCoapPrivateKey> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Coap) target_link_libraries(mytarget PRIVATE Qt6::Coap) |
qmake: | QT += coap |
パブリック関数
QCoapPrivateKey() | |
QCoapPrivateKey(const Qt::HANDLE &handle) | |
QCoapPrivateKey(const QByteArray &key, QSsl::KeyAlgorithm algorithm, QSsl::EncodingFormat format = QSsl::Pem, const QByteArray &passPhrase = QByteArray()) | |
QCoapPrivateKey(const QCoapPrivateKey &other) | |
QCoapPrivateKey(QCoapPrivateKey &&other) | |
~QCoapPrivateKey() | |
QSsl::KeyAlgorithm | algorithm() const |
QSsl::EncodingFormat | encodingFormat() const |
Qt::HANDLE | handle() const |
bool | isNull() const |
QByteArray | key() const |
QByteArray | passPhrase() const |
void | swap(QCoapPrivateKey &other) |
QCoapPrivateKey & | operator=(const QCoapPrivateKey &other) |
詳細説明
QCoapPrivateKeyは、CoAP接続を安全にネゴシエートするために使用される秘密鍵をパッケージ化したものです。pre-shared
鍵や X.509 証明書を使った認証に必要な情報を保持します。
メンバー関数ドキュメント
QCoapPrivateKey::QCoapPrivateKey()
QCoapPrivateKeyの空のインスタンスを構築します。
QCoapPrivateKey::QCoapPrivateKey(const Qt::HANDLE &handle)
ネイティブ・キーhandle から QCoapPrivateKey を構築します。
QCoapPrivateKey::QCoapPrivateKey(const QByteArray &key, QSsl::KeyAlgorithm algorithm, QSsl::EncodingFormat format = QSsl::Pem, const QByteArray &passPhrase = QByteArray())
指定されたalgorithm とエンコーディングformat を使用して、バイト配列key から QCoapPrivateKey を構築します。
キーが暗号化されている場合は、passPhrase 。
QCoapPrivateKey::QCoapPrivateKey(const QCoapPrivateKey &other)
other の内容をこのキーにコピーし、2つのキーを同一にする。
[noexcept]
QCoapPrivateKey::QCoapPrivateKey(QCoapPrivateKey &&other)
Move-QCoapPrivateKeyを構築し、other が指していたのと同じオブジェクトを指すようにする。
[noexcept]
QCoapPrivateKey::~QCoapPrivateKey()
QCoapPrivateKey が保持するリソースを解放する。
QSsl::KeyAlgorithm QCoapPrivateKey::algorithm() const
キーアルゴリズムを返します。
QSsl::EncodingFormat QCoapPrivateKey::encodingFormat() const
キーのエンコード形式を返します。
Qt::HANDLE QCoapPrivateKey::handle() const
ネイティブ・キー・ハンドルへのポインタを返します。
bool QCoapPrivateKey::isNull() const
秘密鍵が NULL の場合はtrue
を返し、そうでない場合はfalse
を返す。
QByteArray QCoapPrivateKey::key() const
エンコードされた秘密鍵を返します。
QByteArray QCoapPrivateKey::passPhrase() const
キーのパスフレーズを返します。
[noexcept]
void QCoapPrivateKey::swap(QCoapPrivateKey &other)
この秘密鍵をother と交換する。この操作は非常に速く、失敗することはない。
QCoapPrivateKey &QCoapPrivateKey::operator=(const QCoapPrivateKey &other)
other の内容をこのキーにコピーし、2 つのキーを同一にする。
このQCoapPrivateKey への参照を返す。
© 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.