本页内容

QDtlsClientVerifier::GeneratorParameters Struct

struct QDtlsClientVerifier::GeneratorParameters

该类定义了 DTLS Cookie 生成器的参数。更多内容...

公共函数

GeneratorParameters()
GeneratorParameters(QCryptographicHash::Algorithm algorithm, const QByteArray &secret)

详细说明

该类的对象提供QDtlsClientVerifier 用于生成 DTLS Cookie 的参数。这些参数包括加密哈希算法和密钥。

注意: QDtlsClientVerifier::setCookieGeneratorParameters() 会将空密钥 视为无效。

另请参阅 QDtlsClientVerifier::setCookieGeneratorParameters()、QDtlsClientVerifier::cookieGeneratorParameters()、QDtls::setCookieGeneratorParameters()、QDtls::cookieGeneratorParameters() 和QCryptographicHash::Algorithm 。

成员函数文档

GeneratorParameters::GeneratorParameters()

默认情况下,会创建一个 GeneratorParameters 对象,其算法为QCryptographicHash::Sha1 ,且密钥为空。

另请参阅 QDtlsClientVerifier::setCookieGeneratorParameters()、QDtlsClientVerifier::cookieGeneratorParameters()、QDtls::setCookieGeneratorParameters() 和QDtls::cookieGeneratorParameters()。

GeneratorParameters::GeneratorParameters(QCryptographicHash::Algorithm algorithm, const QByteArray &secret)

根据algorithm 和secret 构建 GeneratorParameters 对象。

另请参阅 QDtlsClientVerifier::setCookieGeneratorParameters()、QDtlsClientVerifier::cookieGeneratorParameters()、QDtls::setCookieGeneratorParameters() 以及QDtls::cookieGeneratorParameters()。

© 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.