Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qqmlssl.qdoc
Go to the documentation of this file.
1
// Copyright (C) 2023 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4
/*!
5
\qmltype sslConfiguration
6
\inqmlmodule QtNetwork
7
8
\brief The sslConfiguration class holds the configuration and state of an
9
SSL connection.
10
11
sslConfiguration is used to relay information
12
about an open SSL connection and to allow the application to control
13
certain features of that connection.
14
The sslConfiguration encapsulates QSslConfiguration object inside.
15
The sslConfiguration defaults are initialized by calling
16
\l QSslConfiguration::defaultConfiguration.
17
18
\sa QSslConfiguration
19
*/
20
21
/*!
22
\qmlproperty QList sslConfiguration::sslOptions
23
\deprecated [6.11] Use sslOptionFlags instead. This property will be removed
24
in Qt 7.
25
26
Holds the list of SslOption values, that are activated by configuration.
27
28
//! [usage-warning]
29
\warning This property has known issues and its usage is discouraged.
30
Specifically, it does not allow to disable an SSL option once it was
31
enabled and can get out of sync with the underlying SSL configuration.
32
It is kept only for source and behavior compatibility. Use \l sslOptionFlags
33
property instead.
34
//! [usage-warning]
35
36
\sa QSsl::SslOption, sslOptionFlags
37
*/
38
39
/*!
40
\qmlproperty QSsl::SslOptions sslConfiguration::sslOptionFlags
41
\since 6.11
42
43
Holds the bitwise OR of SslOption values that are enabled in the
44
configuration.
45
46
The default value is the same as set by
47
\l QSslConfiguration::defaultConfiguration().
48
49
\sa QSsl::SslOptions
50
*/
51
52
/*!
53
\qmlproperty string sslConfiguration::ciphers
54
Holds the cryptographic cipher suite for this configuration to \a ciphers,
55
which is a colon-separated list of cipher suite names.
56
57
\sa QSslConfiguration::ciphers
58
*/
59
60
/*!
61
\qmlproperty enumeration sslConfiguration::protocol
62
Holds SslProtocol enumeration value.
63
\sa QSsl::SslProtocol
64
*/
65
66
/*!
67
\qmlproperty enumeration sslConfiguration::peerVerifyMode
68
Holds PeerVerifyMode enumeration value.
69
70
\sa QSslSocket::PeerVerifyMode
71
*/
72
73
/*!
74
\qmlproperty int sslConfiguration::peerVerifyDepth
75
76
Holds the maximum number of certificates in the peer's certificate chain
77
to be checked during the SSL handshake phase, or 0 (the default) if no
78
maximum depth has been set, indicating that the whole certificate chain
79
should be checked.
80
81
\sa QSslConfiguration::peerVerifyDepth
82
*/
83
84
/*!
85
\qmlproperty bytearray sslConfiguration::sessionTicket
86
87
Holds the session ticket used in the SSL handshake in ASN.1
88
format, suitable to e.g. be persisted to disk.
89
90
\sa QSslConfiguration::sessionTicket
91
*/
92
93
/*!
94
\qmlmethod void sslConfiguration::setCertificateFiles(const QStringList &certificateFiles);
95
96
This function loads into configuration the list of certificates \a certificateFiles
97
provided by user.
98
*/
99
100
/*!
101
\qmlmethod void sslConfiguration::setPrivateKey(const QQmlSslKey &privateKey);
102
103
This function sets into configuration user defined Private key value \a privateKey.
104
105
\sa QSslKey, sslKey
106
*/
107
108
/*!
109
\qmltype sslDtlsConfiguration
110
\inqmlmodule QtNetwork
111
112
\brief The sslDtlsConfiguration class holds the Dtls
113
default configuration and state of an SSL connection.
114
115
\sa QSslConfiguration
116
*/
117
118
/*!
119
\qmlproperty QList sslDtlsConfiguration::sslOptions
120
\deprecated [6.11] Use sslOptionFlags instead. This property will be removed
121
in Qt 7.
122
123
Holds the list of SslOption values, that are activated by configuration.
124
125
\include qqmlssl.qdoc usage-warning
126
127
\sa QSsl::SslOption, sslOptionFlags
128
*/
129
130
/*!
131
\qmlproperty QSsl::SslOptions sslDtlsConfiguration::sslOptionFlags
132
\since 6.11
133
134
Holds the bitwise OR of SslOption values that are enabled in the
135
configuration.
136
137
The default value is the same as set by
138
\l QSslConfiguration::defaultDtlsConfiguration().
139
140
\sa QSsl::SslOptions
141
*/
142
143
/*!
144
\qmlproperty string sslDtlsConfiguration::ciphers
145
Holds the cryptographic cipher suite for this configuration to \a ciphers,
146
which is a colon-separated list of cipher suite names.
147
148
\sa QSslConfiguration::ciphers
149
*/
150
151
/*!
152
\qmlproperty enumeration sslDtlsConfiguration::protocol
153
Holds SslProtocol enumeration value.
154
\sa QSsl::SslProtocol
155
*/
156
157
/*!
158
\qmlproperty enumeration sslDtlsConfiguration::peerVerifyMode
159
Holds PeerVerifyMode enumeration value.
160
161
\sa QSslSocket::PeerVerifyMode
162
*/
163
164
/*!
165
\qmlproperty int sslDtlsConfiguration::peerVerifyDepth
166
167
Holds the maximum number of certificates in the peer's certificate chain
168
to be checked during the SSL handshake phase, or 0 (the default) if no
169
maximum depth has been set, indicating that the whole certificate chain
170
should be checked.
171
172
\sa QSslConfiguration::peerVerifyDepth
173
*/
174
175
/*!
176
\qmlproperty bytearray sslDtlsConfiguration::sessionTicket
177
178
Holds the session ticket used in the SSL handshake in ASN.1
179
format, suitable to e.g. be persisted to disk.
180
181
\sa QSslConfiguration::sessionTicket
182
*/
183
184
/*!
185
\qmlmethod void sslDtlsConfiguration::setCertificateFiles(const QStringList &certificateFiles);
186
187
This function loads into configuration the list of certificates \a certificateFiles
188
provided by user.
189
*/
190
191
/*!
192
\qmlmethod void sslDtlsConfiguration::setPrivateKey(const QQmlSslKey &privateKey);
193
194
This function sets into configuration user defined Private key value \a privateKey.
195
196
\sa QSslKey, sslKey
197
*/
198
199
/*!
200
\qmltype sslKey
201
\inqmlmodule QtNetwork
202
203
\nativetype QSslKey
204
\brief The sslKey class provides the interface for private and public keys.
205
206
The sslKey provides an API for managing keys.
207
The QML sslKey class is \c Q_GADGET based, it generates QSslKey object
208
based on it's QML properties.
209
210
\sa QSslKey
211
*/
212
213
/*!
214
\qmlproperty string sslKey::keyFile
215
Holds the path to the \c *.pem key file.
216
*/
217
218
/*!
219
\qmlproperty enumeration sslKey::keyAlgorithm
220
Holds KeyAlgorithm enumeration value.
221
222
\sa QSsl::KeyAlgorithm
223
*/
224
225
/*!
226
\qmlproperty enumeration sslKey::keyFormat
227
Holds EncodingFormat enumeration value.
228
\sa QSsl::EncodingFormat
229
*/
230
231
/*!
232
\qmlproperty bytearray sslKey::keyPassPhrase
233
234
Holds the value to be used to decrypt QSslKey.
235
236
\sa QSslKey
237
*/
238
239
/*!
240
\qmlproperty enumeration sslKey::keyType
241
Holds KeyType enumeration value.
242
\sa QSsl::KeyType
243
*/
qtdeclarative
src
qmlnetwork
ssl
qqmlssl.qdoc
Generated on
for Qt by
1.16.1