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 値のビット単位の論理和を保持します。
デフォルト値は、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.