GeneratorParameters Struct

struct QDtlsClientVerifier ::GeneratorParameters

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 .

成员函数文档编制

GeneratorParameters:: GeneratorParameters ()

Default constructs GeneratorParameters object with 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 object from algorithm and secret .

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