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