|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric6.E5Network.E5SslCertificatesDialog</title> |
|
4 <meta charset="UTF-8"> |
|
5 <style> |
|
6 body { |
|
7 background: #EDECE6; |
|
8 margin: 0em 1em 10em 1em; |
|
9 color: black; |
|
10 } |
|
11 |
|
12 h1 { color: white; background: #85774A; } |
|
13 h2 { color: white; background: #85774A; } |
|
14 h3 { color: white; background: #9D936E; } |
|
15 h4 { color: white; background: #9D936E; } |
|
16 |
|
17 a { color: #BA6D36; } |
|
18 |
|
19 </style> |
|
20 </head> |
|
21 <body><a NAME="top" ID="top"></a> |
|
22 <h1>eric6.E5Network.E5SslCertificatesDialog</h1> |
|
23 <p> |
|
24 Module implementing a dialog to show and edit all certificates. |
|
25 </p> |
|
26 <h3>Global Attributes</h3> |
|
27 <table> |
|
28 <tr><td>None</td></tr> |
|
29 </table> |
|
30 <h3>Classes</h3> |
|
31 <table> |
|
32 <tr> |
|
33 <td><a href="#E5SslCertificatesDialog">E5SslCertificatesDialog</a></td> |
|
34 <td>Class implementing a dialog to show and edit all certificates.</td> |
|
35 </tr> |
|
36 </table> |
|
37 <h3>Functions</h3> |
|
38 <table> |
|
39 <tr><td>None</td></tr> |
|
40 </table> |
|
41 <hr /><hr /> |
|
42 <a NAME="E5SslCertificatesDialog" ID="E5SslCertificatesDialog"></a> |
|
43 <h2>E5SslCertificatesDialog</h2> |
|
44 <p> |
|
45 Class implementing a dialog to show and edit all certificates. |
|
46 </p> |
|
47 <h3>Derived from</h3> |
|
48 QDialog, Ui_E5SslCertificatesDialog |
|
49 <h3>Class Attributes</h3> |
|
50 <table> |
|
51 <tr><td>CertRole</td></tr> |
|
52 </table> |
|
53 <h3>Class Methods</h3> |
|
54 <table> |
|
55 <tr><td>None</td></tr> |
|
56 </table> |
|
57 <h3>Methods</h3> |
|
58 <table> |
|
59 <tr> |
|
60 <td><a href="#E5SslCertificatesDialog.__init__">E5SslCertificatesDialog</a></td> |
|
61 <td>Constructor</td> |
|
62 </tr><tr> |
|
63 <td><a href="#E5SslCertificatesDialog.__createCaCertificateEntry">__createCaCertificateEntry</a></td> |
|
64 <td>Private method to create a CA certificate entry.</td> |
|
65 </tr><tr> |
|
66 <td><a href="#E5SslCertificatesDialog.__createServerCertificateEntry">__createServerCertificateEntry</a></td> |
|
67 <td>Private method to create a server certificate entry.</td> |
|
68 </tr><tr> |
|
69 <td><a href="#E5SslCertificatesDialog.__exportCertificate">__exportCertificate</a></td> |
|
70 <td>Private slot to export a certificate.</td> |
|
71 </tr><tr> |
|
72 <td><a href="#E5SslCertificatesDialog.__getSystemCaCertificates">__getSystemCaCertificates</a></td> |
|
73 <td>Private method to get the list of system certificates.</td> |
|
74 </tr><tr> |
|
75 <td><a href="#E5SslCertificatesDialog.__importCertificate">__importCertificate</a></td> |
|
76 <td>Private method to read a certificate.</td> |
|
77 </tr><tr> |
|
78 <td><a href="#E5SslCertificatesDialog.__populateCaCertificatesTree">__populateCaCertificatesTree</a></td> |
|
79 <td>Private slot to populate the CA certificates tree.</td> |
|
80 </tr><tr> |
|
81 <td><a href="#E5SslCertificatesDialog.__populateServerCertificatesTree">__populateServerCertificatesTree</a></td> |
|
82 <td>Private slot to populate the server certificates tree.</td> |
|
83 </tr><tr> |
|
84 <td><a href="#E5SslCertificatesDialog.__updateDefaultConfiguration">__updateDefaultConfiguration</a></td> |
|
85 <td>Private method to update the default SSL configuration.</td> |
|
86 </tr><tr> |
|
87 <td><a href="#E5SslCertificatesDialog.on_caCertificatesTree_currentItemChanged">on_caCertificatesTree_currentItemChanged</a></td> |
|
88 <td>Private slot handling a change of the current item in the CA certificates list.</td> |
|
89 </tr><tr> |
|
90 <td><a href="#E5SslCertificatesDialog.on_caDeleteButton_clicked">on_caDeleteButton_clicked</a></td> |
|
91 <td>Private slot to delete the selected CA certificate.</td> |
|
92 </tr><tr> |
|
93 <td><a href="#E5SslCertificatesDialog.on_caExportButton_clicked">on_caExportButton_clicked</a></td> |
|
94 <td>Private slot to export the selected CA certificate.</td> |
|
95 </tr><tr> |
|
96 <td><a href="#E5SslCertificatesDialog.on_caImportButton_clicked">on_caImportButton_clicked</a></td> |
|
97 <td>Private slot to import server certificates.</td> |
|
98 </tr><tr> |
|
99 <td><a href="#E5SslCertificatesDialog.on_caViewButton_clicked">on_caViewButton_clicked</a></td> |
|
100 <td>Private slot to show data of the selected CA certificate.</td> |
|
101 </tr><tr> |
|
102 <td><a href="#E5SslCertificatesDialog.on_serversCertificatesTree_currentItemChanged">on_serversCertificatesTree_currentItemChanged</a></td> |
|
103 <td>Private slot handling a change of the current item in the server certificates list.</td> |
|
104 </tr><tr> |
|
105 <td><a href="#E5SslCertificatesDialog.on_serversDeleteButton_clicked">on_serversDeleteButton_clicked</a></td> |
|
106 <td>Private slot to delete the selected server certificate.</td> |
|
107 </tr><tr> |
|
108 <td><a href="#E5SslCertificatesDialog.on_serversExportButton_clicked">on_serversExportButton_clicked</a></td> |
|
109 <td>Private slot to export the selected server certificate.</td> |
|
110 </tr><tr> |
|
111 <td><a href="#E5SslCertificatesDialog.on_serversImportButton_clicked">on_serversImportButton_clicked</a></td> |
|
112 <td>Private slot to import server certificates.</td> |
|
113 </tr><tr> |
|
114 <td><a href="#E5SslCertificatesDialog.on_serversViewButton_clicked">on_serversViewButton_clicked</a></td> |
|
115 <td>Private slot to show data of the selected server certificate.</td> |
|
116 </tr> |
|
117 </table> |
|
118 <h3>Static Methods</h3> |
|
119 <table> |
|
120 <tr><td>None</td></tr> |
|
121 </table> |
|
122 <a NAME="E5SslCertificatesDialog.__init__" ID="E5SslCertificatesDialog.__init__"></a> |
|
123 <h4>E5SslCertificatesDialog (Constructor)</h4> |
|
124 <b>E5SslCertificatesDialog</b>(<i>parent=None</i>) |
|
125 <p> |
|
126 Constructor |
|
127 </p><dl> |
|
128 <dt><i>parent</i></dt> |
|
129 <dd> |
|
130 reference to the parent widget (QWidget) |
|
131 </dd> |
|
132 </dl><a NAME="E5SslCertificatesDialog.__createCaCertificateEntry" ID="E5SslCertificatesDialog.__createCaCertificateEntry"></a> |
|
133 <h4>E5SslCertificatesDialog.__createCaCertificateEntry</h4> |
|
134 <b>__createCaCertificateEntry</b>(<i>cert</i>) |
|
135 <p> |
|
136 Private method to create a CA certificate entry. |
|
137 </p><dl> |
|
138 <dt><i>cert</i></dt> |
|
139 <dd> |
|
140 certificate to insert (QSslCertificate) |
|
141 </dd> |
|
142 </dl><a NAME="E5SslCertificatesDialog.__createServerCertificateEntry" ID="E5SslCertificatesDialog.__createServerCertificateEntry"></a> |
|
143 <h4>E5SslCertificatesDialog.__createServerCertificateEntry</h4> |
|
144 <b>__createServerCertificateEntry</b>(<i>server, cert</i>) |
|
145 <p> |
|
146 Private method to create a server certificate entry. |
|
147 </p><dl> |
|
148 <dt><i>server</i></dt> |
|
149 <dd> |
|
150 server name of the certificate (string) |
|
151 </dd><dt><i>cert</i></dt> |
|
152 <dd> |
|
153 certificate to insert (QSslCertificate) |
|
154 </dd> |
|
155 </dl><a NAME="E5SslCertificatesDialog.__exportCertificate" ID="E5SslCertificatesDialog.__exportCertificate"></a> |
|
156 <h4>E5SslCertificatesDialog.__exportCertificate</h4> |
|
157 <b>__exportCertificate</b>(<i>name, cert</i>) |
|
158 <p> |
|
159 Private slot to export a certificate. |
|
160 </p><dl> |
|
161 <dt><i>name</i></dt> |
|
162 <dd> |
|
163 default file name without extension (string) |
|
164 </dd><dt><i>cert</i></dt> |
|
165 <dd> |
|
166 certificate to be exported (QSslCertificate) |
|
167 </dd> |
|
168 </dl><a NAME="E5SslCertificatesDialog.__getSystemCaCertificates" ID="E5SslCertificatesDialog.__getSystemCaCertificates"></a> |
|
169 <h4>E5SslCertificatesDialog.__getSystemCaCertificates</h4> |
|
170 <b>__getSystemCaCertificates</b>(<i></i>) |
|
171 <p> |
|
172 Private method to get the list of system certificates. |
|
173 </p><dl> |
|
174 <dt>Returns:</dt> |
|
175 <dd> |
|
176 list of system certificates (list of QSslCertificate) |
|
177 </dd> |
|
178 </dl><a NAME="E5SslCertificatesDialog.__importCertificate" ID="E5SslCertificatesDialog.__importCertificate"></a> |
|
179 <h4>E5SslCertificatesDialog.__importCertificate</h4> |
|
180 <b>__importCertificate</b>(<i></i>) |
|
181 <p> |
|
182 Private method to read a certificate. |
|
183 </p><dl> |
|
184 <dt>Returns:</dt> |
|
185 <dd> |
|
186 certificates read (list of QSslCertificate) |
|
187 </dd> |
|
188 </dl><a NAME="E5SslCertificatesDialog.__populateCaCertificatesTree" ID="E5SslCertificatesDialog.__populateCaCertificatesTree"></a> |
|
189 <h4>E5SslCertificatesDialog.__populateCaCertificatesTree</h4> |
|
190 <b>__populateCaCertificatesTree</b>(<i></i>) |
|
191 <p> |
|
192 Private slot to populate the CA certificates tree. |
|
193 </p><a NAME="E5SslCertificatesDialog.__populateServerCertificatesTree" ID="E5SslCertificatesDialog.__populateServerCertificatesTree"></a> |
|
194 <h4>E5SslCertificatesDialog.__populateServerCertificatesTree</h4> |
|
195 <b>__populateServerCertificatesTree</b>(<i></i>) |
|
196 <p> |
|
197 Private slot to populate the server certificates tree. |
|
198 </p><a NAME="E5SslCertificatesDialog.__updateDefaultConfiguration" ID="E5SslCertificatesDialog.__updateDefaultConfiguration"></a> |
|
199 <h4>E5SslCertificatesDialog.__updateDefaultConfiguration</h4> |
|
200 <b>__updateDefaultConfiguration</b>(<i></i>) |
|
201 <p> |
|
202 Private method to update the default SSL configuration. |
|
203 </p><a NAME="E5SslCertificatesDialog.on_caCertificatesTree_currentItemChanged" ID="E5SslCertificatesDialog.on_caCertificatesTree_currentItemChanged"></a> |
|
204 <h4>E5SslCertificatesDialog.on_caCertificatesTree_currentItemChanged</h4> |
|
205 <b>on_caCertificatesTree_currentItemChanged</b>(<i>current, previous</i>) |
|
206 <p> |
|
207 Private slot handling a change of the current item |
|
208 in the CA certificates list. |
|
209 </p><dl> |
|
210 <dt><i>current</i></dt> |
|
211 <dd> |
|
212 new current item (QTreeWidgetItem) |
|
213 </dd><dt><i>previous</i></dt> |
|
214 <dd> |
|
215 previous current item (QTreeWidgetItem) |
|
216 </dd> |
|
217 </dl><a NAME="E5SslCertificatesDialog.on_caDeleteButton_clicked" ID="E5SslCertificatesDialog.on_caDeleteButton_clicked"></a> |
|
218 <h4>E5SslCertificatesDialog.on_caDeleteButton_clicked</h4> |
|
219 <b>on_caDeleteButton_clicked</b>(<i></i>) |
|
220 <p> |
|
221 Private slot to delete the selected CA certificate. |
|
222 </p><a NAME="E5SslCertificatesDialog.on_caExportButton_clicked" ID="E5SslCertificatesDialog.on_caExportButton_clicked"></a> |
|
223 <h4>E5SslCertificatesDialog.on_caExportButton_clicked</h4> |
|
224 <b>on_caExportButton_clicked</b>(<i></i>) |
|
225 <p> |
|
226 Private slot to export the selected CA certificate. |
|
227 </p><a NAME="E5SslCertificatesDialog.on_caImportButton_clicked" ID="E5SslCertificatesDialog.on_caImportButton_clicked"></a> |
|
228 <h4>E5SslCertificatesDialog.on_caImportButton_clicked</h4> |
|
229 <b>on_caImportButton_clicked</b>(<i></i>) |
|
230 <p> |
|
231 Private slot to import server certificates. |
|
232 </p><a NAME="E5SslCertificatesDialog.on_caViewButton_clicked" ID="E5SslCertificatesDialog.on_caViewButton_clicked"></a> |
|
233 <h4>E5SslCertificatesDialog.on_caViewButton_clicked</h4> |
|
234 <b>on_caViewButton_clicked</b>(<i></i>) |
|
235 <p> |
|
236 Private slot to show data of the selected CA certificate. |
|
237 </p><a NAME="E5SslCertificatesDialog.on_serversCertificatesTree_currentItemChanged" ID="E5SslCertificatesDialog.on_serversCertificatesTree_currentItemChanged"></a> |
|
238 <h4>E5SslCertificatesDialog.on_serversCertificatesTree_currentItemChanged</h4> |
|
239 <b>on_serversCertificatesTree_currentItemChanged</b>(<i>current, previous</i>) |
|
240 <p> |
|
241 Private slot handling a change of the current item in the |
|
242 server certificates list. |
|
243 </p><dl> |
|
244 <dt><i>current</i></dt> |
|
245 <dd> |
|
246 new current item (QTreeWidgetItem) |
|
247 </dd><dt><i>previous</i></dt> |
|
248 <dd> |
|
249 previous current item (QTreeWidgetItem) |
|
250 </dd> |
|
251 </dl><a NAME="E5SslCertificatesDialog.on_serversDeleteButton_clicked" ID="E5SslCertificatesDialog.on_serversDeleteButton_clicked"></a> |
|
252 <h4>E5SslCertificatesDialog.on_serversDeleteButton_clicked</h4> |
|
253 <b>on_serversDeleteButton_clicked</b>(<i></i>) |
|
254 <p> |
|
255 Private slot to delete the selected server certificate. |
|
256 </p><a NAME="E5SslCertificatesDialog.on_serversExportButton_clicked" ID="E5SslCertificatesDialog.on_serversExportButton_clicked"></a> |
|
257 <h4>E5SslCertificatesDialog.on_serversExportButton_clicked</h4> |
|
258 <b>on_serversExportButton_clicked</b>(<i></i>) |
|
259 <p> |
|
260 Private slot to export the selected server certificate. |
|
261 </p><a NAME="E5SslCertificatesDialog.on_serversImportButton_clicked" ID="E5SslCertificatesDialog.on_serversImportButton_clicked"></a> |
|
262 <h4>E5SslCertificatesDialog.on_serversImportButton_clicked</h4> |
|
263 <b>on_serversImportButton_clicked</b>(<i></i>) |
|
264 <p> |
|
265 Private slot to import server certificates. |
|
266 </p><a NAME="E5SslCertificatesDialog.on_serversViewButton_clicked" ID="E5SslCertificatesDialog.on_serversViewButton_clicked"></a> |
|
267 <h4>E5SslCertificatesDialog.on_serversViewButton_clicked</h4> |
|
268 <b>on_serversViewButton_clicked</b>(<i></i>) |
|
269 <p> |
|
270 Private slot to show data of the selected server certificate. |
|
271 </p> |
|
272 <div align="right"><a href="#top">Up</a></div> |
|
273 <hr /> |
|
274 </body></html> |