GeneratorParameters Class

( QDtlsClientVerifier::GeneratorParameters )

This class defines parameters for DTLS cookie generator. 更多...

头: #include <GeneratorParameters>
qmake: QT += network
Since: Qt 5.12

公共函数

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

公共变量

QCryptographicHash::Algorithm hash
QByteArray secret

详细描述

This class defines parameters for DTLS cookie generator.

An object of this class provides the parameters that QDtlsClientVerifier will use to generate DTLS cookies. They include a cryptographic hash algorithm and a secret.

注意: An empty secret is considered to be invalid by QDtlsClientVerifier::setCookieGeneratorParameters ().

另请参阅 QDtlsClientVerifier::setCookieGeneratorParameters (), QDtlsClientVerifier::cookieGeneratorParameters (), QDtls::setCookieGeneratorParameters (), QDtls::cookieGeneratorParameters (),和 QCryptographicHash::Algorithm .

成员函数文档编制

GeneratorParameters:: GeneratorParameters ()

Default constructs GeneratorParameters 对象采用 QCryptographicHash::Sha1 as its algorithm and an empty secret.

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

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

Constructs GeneratorParameters 对象从 algorithm and secret .

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