Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QDtlsClientVerifier::GeneratorParameters Class Reference

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

#include <qdtls.h>

+ Collaboration diagram for QDtlsClientVerifier::GeneratorParameters:

Public Member Functions

 GeneratorParameters ()
 Default constructs GeneratorParameters object with QCryptographicHash::Sha1 as its algorithm and an empty secret.
 
 GeneratorParameters (QCryptographicHash::Algorithm a, const QByteArray &s)
 Constructs GeneratorParameters object from algorithm and secret.
 

Public Attributes

QCryptographicHash::Algorithm hash = QCryptographicHash::Sha1
 
QByteArray secret
 

Detailed Description

This class defines parameters for DTLS cookie generator.

Since
5.12

\inmodule QtNetwork

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(), QCryptographicHash::Algorithm

Definition at line 52 of file qdtls.h.

Constructor & Destructor Documentation

◆ GeneratorParameters() [1/2]

QDtlsClientVerifier::GeneratorParameters::GeneratorParameters ( )

◆ GeneratorParameters() [2/2]

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

Member Data Documentation

◆ hash

QCryptographicHash::Algorithm QDtlsClientVerifier::GeneratorParameters::hash = QCryptographicHash::Sha1

Definition at line 56 of file qdtls.h.

◆ secret

QByteArray QDtlsClientVerifier::GeneratorParameters::secret

Definition at line 57 of file qdtls.h.


The documentation for this class was generated from the following files: