GeneratorParameters Class

(QDtlsClientVerifier::GeneratorParameters)

This class defines parameters for DTLS cookie generator. More...

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

Public Functions

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

Public Variables

QCryptographicHash::Algorithm hash
QByteArray secret

Detailed Description

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.

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

See also QDtlsClientVerifier::setCookieGeneratorParameters(), QDtlsClientVerifier::cookieGeneratorParameters(), QDtls::setCookieGeneratorParameters(), QDtls::cookieGeneratorParameters(), and QCryptographicHash::Algorithm.

Member Function Documentation

GeneratorParameters::GeneratorParameters()

Default constructs GeneratorParameters object with QCryptographicHash::Sha1 as its algorithm and an empty secret.

See also QDtlsClientVerifier::setCookieGeneratorParameters(), QDtlsClientVerifier::cookieGeneratorParameters(), QDtls::setCookieGeneratorParameters(), and QDtls::cookieGeneratorParameters().

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

Constructs GeneratorParameters object from algorithm and secret.

See also QDtlsClientVerifier::setCookieGeneratorParameters(), QDtlsClientVerifier::cookieGeneratorParameters(), QDtls::setCookieGeneratorParameters(), and QDtls::cookieGeneratorParameters().

© 2020 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.