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)

algorithmsecret 构造 GeneratorParameters 对象。

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

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