12QT_IMPL_METATYPE_EXTERN(QSslPreSharedKeyAuthenticator)
13QT_IMPL_METATYPE_EXTERN_TAGGED(QSslPreSharedKeyAuthenticator*, QSslPreSharedKeyAuthenticator_ptr)
16
17
18QSslPreSharedKeyAuthenticatorPrivate::QSslPreSharedKeyAuthenticatorPrivate()
19 : maximumIdentityLength(0),
20 maximumPreSharedKeyLength(0)
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
71
72
73
74
75
76
78 : d(
new QSslPreSharedKeyAuthenticatorPrivate)
83
84
90
91
92
93
100
101
102
110
111
112
113
114
117
118
119
122
123
124
127 return d->identityHint;
131
132
133
134
135
136
137
138
141 d->identity = identity;
145
146
147
148
156
157
158
159
160
161
162
163
166 return d->maximumIdentityLength;
171
172
173
174
175
176
177
178
181 d->preSharedKey = preSharedKey;
185
186
187
188
191 return d->preSharedKey;
195
196
197
198
199
200
201
202
205 return d->maximumPreSharedKeyLength;
209
210
211
212
213
214
215
216
217
218
221
222
223
224
225
226
229
230
233 return ((d == other.d) ||
234 (d->identityHint == other.d->identityHint &&
235 d->identity == other.d->identity &&
236 d->maximumIdentityLength == other.d->maximumIdentityLength &&
237 d->preSharedKey == other.d->preSharedKey &&
238 d->maximumPreSharedKeyLength == other.d->maximumPreSharedKeyLength));
The QSslPreSharedKeyAuthenticator class provides authentication data for pre shared keys (PSK) cipher...
Q_NETWORK_EXPORT void setIdentity(const QByteArray &identity)
Sets the PSK client identity (to be advised to the server) to identity.
Q_NETWORK_EXPORT int maximumIdentityLength() const
Returns the maximum length, in bytes, of the PSK client identity.
Q_NETWORK_EXPORT ~QSslPreSharedKeyAuthenticator()
Destroys the QSslPreSharedKeyAuthenticator object.
Q_NETWORK_EXPORT void setPreSharedKey(const QByteArray &preSharedKey)
Sets the pre shared key to preSharedKey.
Q_NETWORK_EXPORT int maximumPreSharedKeyLength() const
Returns the maximum length, in bytes, of the pre shared key.