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 .
Default constructs GeneratorParameters 对象采用 QCryptographicHash::Sha1 as its algorithm and an empty secret.
另请参阅 QDtlsClientVerifier::setCookieGeneratorParameters (), QDtlsClientVerifier::cookieGeneratorParameters (), QDtls::setCookieGeneratorParameters (),和 QDtls::cookieGeneratorParameters ().
Constructs GeneratorParameters 对象从 algorithm and secret .
另请参阅 QDtlsClientVerifier::setCookieGeneratorParameters (), QDtlsClientVerifier::cookieGeneratorParameters (), QDtls::setCookieGeneratorParameters (),和 QDtls::cookieGeneratorParameters ().