sslConfiguration QML Type
sslConfiguration クラスは、SSL 接続の設定と状態を保持します。詳細...
| Import Statement: | import QtNetwork |
| Since: | Qt 6.7 |
プロパティ
- ciphers : string
- peerVerifyDepth : int
- peerVerifyMode : enumeration
- protocol : enumeration
- sessionTicket : bytearray
- sslOptionFlags : QSsl::SslOptions
(since 6.11)
方法
- void setCertificateFiles(const QStringList &certificateFiles)
- void setPrivateKey(const QQmlSslKey &privateKey)
詳細な説明
sslConfiguration は、開いている SSL 接続に関する情報を中継し、アプリケーションがその接続の特定の機能を制御できるようにするために使用されます。sslConfiguration はQSslConfiguration オブジェクトを内部にカプセル化します。sslConfiguration のデフォルトはQSslConfiguration::defaultConfiguration をコールすることで初期化されます。
QSslConfigurationも参照してください 。
プロパティ ドキュメント
ciphers : string
このコンフィギュレーションで使用する暗号スイートをciphers に保持する。これは、コロンで区切られた暗号スイート名のリストである。
QSslConfiguration::ciphersも参照してください 。
peerVerifyDepth : int
SSL ハンドシェークフェーズで確認する相手の証明書チェーンの最大数を保持します。最大深度が設定されていない場合は 0 (デフォルト) となり、証明書チェーン全体を確認する必要があることを示します。
QSslConfiguration::peerVerifyDepthも参照してください 。
peerVerifyMode : enumeration
PeerVerifyMode 列挙値を保持する。
QSslSocket::PeerVerifyModeも参照 。
protocol : enumeration
SslProtocol 列挙値を保持する。
QSsl::SslProtocolも参照 。
sessionTicket : bytearray
SSLハンドシェイクで使われたセッションチケットをASN.1形式で保持する。
QSslConfiguration::sessionTicketも参照してください 。
sslOptionFlags : QSsl::SslOptions [since 6.11]
設定で有効になっている SslOption 値のビット OR を保持する。
デフォルト値はQSslConfiguration::defaultConfiguration() で設定されたものと同じです。
このプロパティは Qt 6.11 で導入されました。
QSsl::SslOptionsも参照してください 。
メソッドのドキュメント
void setCertificateFiles(const QStringList &certificateFiles)
この関数は、ユーザーによって提供された証明書のリスト(certificateFiles )をコンフィギュレーションにロードする。
void setPrivateKey(const QQmlSslKey &privateKey)
この関数は、ユーザー定義の秘密鍵値privateKey をコンフィギュレーションに設定します。
© 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.