This class defines parameters for DTLS cookie generator. 更多...
This struct was introduced in Qt 5.12.
GeneratorParameters (QCryptographicHash::Algorithm algorithm , const QByteArray & secret ) | |
GeneratorParameters () |
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 .
Constructs GeneratorParameters object from algorithm and secret .
另请参阅 QDtlsClientVerifier::setCookieGeneratorParameters (), QDtlsClientVerifier::cookieGeneratorParameters (), QDtls::setCookieGeneratorParameters (),和 QDtls::cookieGeneratorParameters ().
Default constructs GeneratorParameters object with QCryptographicHash::Sha1 as its algorithm and an empty secret.
另请参阅 QDtlsClientVerifier::setCookieGeneratorParameters (), QDtlsClientVerifier::cookieGeneratorParameters (), QDtls::setCookieGeneratorParameters (),和 QDtls::cookieGeneratorParameters ().