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