11QT_IMPL_METATYPE_EXTERN(QSslPreSharedKeyAuthenticator)
12QT_IMPL_METATYPE_EXTERN_TAGGED(QSslPreSharedKeyAuthenticator*, QSslPreSharedKeyAuthenticator_ptr)
15
16
17QSslPreSharedKeyAuthenticatorPrivate::QSslPreSharedKeyAuthenticatorPrivate()
18 : maximumIdentityLength(0),
19 maximumPreSharedKeyLength(0)
24
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
70
71
72
73
74
75
77 : d(
new QSslPreSharedKeyAuthenticatorPrivate)
82
83
89
90
91
92
99
100
101
109
110
111
112
113
116
117
118
121
122
123
126 return d->identityHint;
130
131
132
133
134
135
136
137
140 d->identity = identity;
144
145
146
147
155
156
157
158
159
160
161
162
165 return d->maximumIdentityLength;
170
171
172
173
174
175
176
177
180 d->preSharedKey = preSharedKey;
184
185
186
187
190 return d->preSharedKey;
194
195
196
197
198
199
200
201
204 return d->maximumPreSharedKeyLength;
208
209
210
211
212
213
214
215
216
217
220
221
222
223
224
225
228
229
232 return ((d == other.d) ||
233 (d->identityHint == other.d->identityHint &&
234 d->identity == other.d->identity &&
235 d->maximumIdentityLength == other.d->maximumIdentityLength &&
236 d->preSharedKey == other.d->preSharedKey &&
237 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.
Combined button and popup list for selecting options.