|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.EricNetwork.EricSslCertificatesInfoWidget</title> |
|
4 <meta charset="UTF-8"> |
|
5 <link rel="stylesheet" href="styles.css"> |
|
6 </head> |
|
7 <body> |
|
8 <a NAME="top" ID="top"></a> |
|
9 <h1>eric7.EricNetwork.EricSslCertificatesInfoWidget</h1> |
|
10 |
|
11 <p> |
|
12 Module implementing a widget to show SSL certificate infos. |
|
13 </p> |
|
14 <h3>Global Attributes</h3> |
|
15 |
|
16 <table> |
|
17 <tr><td>None</td></tr> |
|
18 </table> |
|
19 <h3>Classes</h3> |
|
20 |
|
21 <table> |
|
22 |
|
23 <tr> |
|
24 <td><a href="#EricSslCertificatesInfoWidget">EricSslCertificatesInfoWidget</a></td> |
|
25 <td>Class implementing a widget to show SSL certificate infos.</td> |
|
26 </tr> |
|
27 </table> |
|
28 <h3>Functions</h3> |
|
29 |
|
30 <table> |
|
31 <tr><td>None</td></tr> |
|
32 </table> |
|
33 <hr /> |
|
34 <hr /> |
|
35 <a NAME="EricSslCertificatesInfoWidget" ID="EricSslCertificatesInfoWidget"></a> |
|
36 <h2>EricSslCertificatesInfoWidget</h2> |
|
37 |
|
38 <p> |
|
39 Class implementing a widget to show SSL certificate infos. |
|
40 </p> |
|
41 <h3>Derived from</h3> |
|
42 QWidget, Ui_EricSslCertificatesInfoWidget |
|
43 <h3>Class Attributes</h3> |
|
44 |
|
45 <table> |
|
46 <tr><td>None</td></tr> |
|
47 </table> |
|
48 <h3>Class Methods</h3> |
|
49 |
|
50 <table> |
|
51 <tr><td>None</td></tr> |
|
52 </table> |
|
53 <h3>Methods</h3> |
|
54 |
|
55 <table> |
|
56 |
|
57 <tr> |
|
58 <td><a href="#EricSslCertificatesInfoWidget.__init__">EricSslCertificatesInfoWidget</a></td> |
|
59 <td>Constructor</td> |
|
60 </tr> |
|
61 <tr> |
|
62 <td><a href="#EricSslCertificatesInfoWidget.__certificateString">__certificateString</a></td> |
|
63 <td>Private method to prepare some text for display.</td> |
|
64 </tr> |
|
65 <tr> |
|
66 <td><a href="#EricSslCertificatesInfoWidget.__formatHexString">__formatHexString</a></td> |
|
67 <td>Private method to format a hex string for display.</td> |
|
68 </tr> |
|
69 <tr> |
|
70 <td><a href="#EricSslCertificatesInfoWidget.__hasExpired">__hasExpired</a></td> |
|
71 <td>Private method to check for a certificate expiration.</td> |
|
72 </tr> |
|
73 <tr> |
|
74 <td><a href="#EricSslCertificatesInfoWidget.__serialNumber">__serialNumber</a></td> |
|
75 <td>Private slot to format the certificate serial number.</td> |
|
76 </tr> |
|
77 <tr> |
|
78 <td><a href="#EricSslCertificatesInfoWidget.__showCertificate">__showCertificate</a></td> |
|
79 <td>Private method to show the SSL certificate information.</td> |
|
80 </tr> |
|
81 <tr> |
|
82 <td><a href="#EricSslCertificatesInfoWidget.on_chainComboBox_activated">on_chainComboBox_activated</a></td> |
|
83 <td>Private slot to show the certificate info for the selected entry.</td> |
|
84 </tr> |
|
85 <tr> |
|
86 <td><a href="#EricSslCertificatesInfoWidget.showCertificate">showCertificate</a></td> |
|
87 <td>Public method to show the SSL certificate information.</td> |
|
88 </tr> |
|
89 <tr> |
|
90 <td><a href="#EricSslCertificatesInfoWidget.showCertificateChain">showCertificateChain</a></td> |
|
91 <td>Public method to show the SSL certificates of a certificate chain.</td> |
|
92 </tr> |
|
93 </table> |
|
94 <h3>Static Methods</h3> |
|
95 |
|
96 <table> |
|
97 <tr><td>None</td></tr> |
|
98 </table> |
|
99 |
|
100 <a NAME="EricSslCertificatesInfoWidget.__init__" ID="EricSslCertificatesInfoWidget.__init__"></a> |
|
101 <h4>EricSslCertificatesInfoWidget (Constructor)</h4> |
|
102 <b>EricSslCertificatesInfoWidget</b>(<i>parent=None</i>) |
|
103 |
|
104 <p> |
|
105 Constructor |
|
106 </p> |
|
107 <dl> |
|
108 |
|
109 <dt><i>parent</i></dt> |
|
110 <dd> |
|
111 reference to the parent widget (QWidget) |
|
112 </dd> |
|
113 </dl> |
|
114 <a NAME="EricSslCertificatesInfoWidget.__certificateString" ID="EricSslCertificatesInfoWidget.__certificateString"></a> |
|
115 <h4>EricSslCertificatesInfoWidget.__certificateString</h4> |
|
116 <b>__certificateString</b>(<i>txt</i>) |
|
117 |
|
118 <p> |
|
119 Private method to prepare some text for display. |
|
120 </p> |
|
121 <dl> |
|
122 |
|
123 <dt><i>txt</i></dt> |
|
124 <dd> |
|
125 text to be displayed (string) |
|
126 </dd> |
|
127 </dl> |
|
128 <dl> |
|
129 <dt>Return:</dt> |
|
130 <dd> |
|
131 prepared text (string) |
|
132 </dd> |
|
133 </dl> |
|
134 <a NAME="EricSslCertificatesInfoWidget.__formatHexString" ID="EricSslCertificatesInfoWidget.__formatHexString"></a> |
|
135 <h4>EricSslCertificatesInfoWidget.__formatHexString</h4> |
|
136 <b>__formatHexString</b>(<i>hexString</i>) |
|
137 |
|
138 <p> |
|
139 Private method to format a hex string for display. |
|
140 </p> |
|
141 <dl> |
|
142 |
|
143 <dt><i>hexString</i></dt> |
|
144 <dd> |
|
145 hex string to be formatted (string) |
|
146 </dd> |
|
147 </dl> |
|
148 <dl> |
|
149 <dt>Return:</dt> |
|
150 <dd> |
|
151 formatted string (string) |
|
152 </dd> |
|
153 </dl> |
|
154 <a NAME="EricSslCertificatesInfoWidget.__hasExpired" ID="EricSslCertificatesInfoWidget.__hasExpired"></a> |
|
155 <h4>EricSslCertificatesInfoWidget.__hasExpired</h4> |
|
156 <b>__hasExpired</b>(<i>effectiveDate, expiryDate</i>) |
|
157 |
|
158 <p> |
|
159 Private method to check for a certificate expiration. |
|
160 </p> |
|
161 <dl> |
|
162 |
|
163 <dt><i>effectiveDate</i></dt> |
|
164 <dd> |
|
165 date the certificate becomes effective (QDateTime) |
|
166 </dd> |
|
167 <dt><i>expiryDate</i></dt> |
|
168 <dd> |
|
169 date the certificate expires (QDateTime) |
|
170 </dd> |
|
171 </dl> |
|
172 <dl> |
|
173 <dt>Return:</dt> |
|
174 <dd> |
|
175 flag indicating the expiration status (boolean) |
|
176 </dd> |
|
177 </dl> |
|
178 <a NAME="EricSslCertificatesInfoWidget.__serialNumber" ID="EricSslCertificatesInfoWidget.__serialNumber"></a> |
|
179 <h4>EricSslCertificatesInfoWidget.__serialNumber</h4> |
|
180 <b>__serialNumber</b>(<i>cert</i>) |
|
181 |
|
182 <p> |
|
183 Private slot to format the certificate serial number. |
|
184 </p> |
|
185 <dl> |
|
186 |
|
187 <dt><i>cert</i></dt> |
|
188 <dd> |
|
189 reference to the SSL certificate (QSslCertificate) |
|
190 </dd> |
|
191 </dl> |
|
192 <dl> |
|
193 <dt>Return:</dt> |
|
194 <dd> |
|
195 formated serial number (string) |
|
196 </dd> |
|
197 </dl> |
|
198 <a NAME="EricSslCertificatesInfoWidget.__showCertificate" ID="EricSslCertificatesInfoWidget.__showCertificate"></a> |
|
199 <h4>EricSslCertificatesInfoWidget.__showCertificate</h4> |
|
200 <b>__showCertificate</b>(<i>certificate</i>) |
|
201 |
|
202 <p> |
|
203 Private method to show the SSL certificate information. |
|
204 </p> |
|
205 <dl> |
|
206 |
|
207 <dt><i>certificate</i></dt> |
|
208 <dd> |
|
209 reference to the SSL certificate (QSslCertificate) |
|
210 </dd> |
|
211 </dl> |
|
212 <a NAME="EricSslCertificatesInfoWidget.on_chainComboBox_activated" ID="EricSslCertificatesInfoWidget.on_chainComboBox_activated"></a> |
|
213 <h4>EricSslCertificatesInfoWidget.on_chainComboBox_activated</h4> |
|
214 <b>on_chainComboBox_activated</b>(<i>index</i>) |
|
215 |
|
216 <p> |
|
217 Private slot to show the certificate info for the selected entry. |
|
218 </p> |
|
219 <dl> |
|
220 |
|
221 <dt><i>index</i></dt> |
|
222 <dd> |
|
223 number of the certificate in the certificate chain |
|
224 (integer) |
|
225 </dd> |
|
226 </dl> |
|
227 <a NAME="EricSslCertificatesInfoWidget.showCertificate" ID="EricSslCertificatesInfoWidget.showCertificate"></a> |
|
228 <h4>EricSslCertificatesInfoWidget.showCertificate</h4> |
|
229 <b>showCertificate</b>(<i>certificate</i>) |
|
230 |
|
231 <p> |
|
232 Public method to show the SSL certificate information. |
|
233 </p> |
|
234 <dl> |
|
235 |
|
236 <dt><i>certificate</i></dt> |
|
237 <dd> |
|
238 reference to the SSL certificate (QSslCertificate) |
|
239 </dd> |
|
240 </dl> |
|
241 <a NAME="EricSslCertificatesInfoWidget.showCertificateChain" ID="EricSslCertificatesInfoWidget.showCertificateChain"></a> |
|
242 <h4>EricSslCertificatesInfoWidget.showCertificateChain</h4> |
|
243 <b>showCertificateChain</b>(<i>certificateChain</i>) |
|
244 |
|
245 <p> |
|
246 Public method to show the SSL certificates of a certificate chain. |
|
247 </p> |
|
248 <dl> |
|
249 |
|
250 <dt><i>certificateChain</i></dt> |
|
251 <dd> |
|
252 list od SSL certificates |
|
253 (list of QSslCertificate) |
|
254 </dd> |
|
255 </dl> |
|
256 <div align="right"><a href="#top">Up</a></div> |
|
257 <hr /> |
|
258 </body></html> |