|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric6.E5Network.E5SslCertificatesInfoWidget</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.E5SslCertificatesInfoWidget</h1> |
|
23 <p> |
|
24 Module implementing a widget to show SSL certificate infos. |
|
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="#E5SslCertificatesInfoWidget">E5SslCertificatesInfoWidget</a></td> |
|
34 <td>Class implementing a widget to show SSL certificate infos.</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="E5SslCertificatesInfoWidget" ID="E5SslCertificatesInfoWidget"></a> |
|
43 <h2>E5SslCertificatesInfoWidget</h2> |
|
44 <p> |
|
45 Class implementing a widget to show SSL certificate infos. |
|
46 </p> |
|
47 <h3>Derived from</h3> |
|
48 QWidget, Ui_E5SslCertificatesInfoWidget |
|
49 <h3>Class Attributes</h3> |
|
50 <table> |
|
51 <tr><td>None</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="#E5SslCertificatesInfoWidget.__init__">E5SslCertificatesInfoWidget</a></td> |
|
61 <td>Constructor</td> |
|
62 </tr><tr> |
|
63 <td><a href="#E5SslCertificatesInfoWidget.__certificateString">__certificateString</a></td> |
|
64 <td>Private method to prepare some text for display.</td> |
|
65 </tr><tr> |
|
66 <td><a href="#E5SslCertificatesInfoWidget.__formatHexString">__formatHexString</a></td> |
|
67 <td>Private method to format a hex string for display.</td> |
|
68 </tr><tr> |
|
69 <td><a href="#E5SslCertificatesInfoWidget.__hasExpired">__hasExpired</a></td> |
|
70 <td>Private method to check for a certificate expiration.</td> |
|
71 </tr><tr> |
|
72 <td><a href="#E5SslCertificatesInfoWidget.__serialNumber">__serialNumber</a></td> |
|
73 <td>Private slot to format the certificate serial number.</td> |
|
74 </tr><tr> |
|
75 <td><a href="#E5SslCertificatesInfoWidget.__showCertificate">__showCertificate</a></td> |
|
76 <td>Private method to show the SSL certificate information.</td> |
|
77 </tr><tr> |
|
78 <td><a href="#E5SslCertificatesInfoWidget.on_chainComboBox_activated">on_chainComboBox_activated</a></td> |
|
79 <td>Private slot to show the certificate info for the selected entry.</td> |
|
80 </tr><tr> |
|
81 <td><a href="#E5SslCertificatesInfoWidget.showCertificate">showCertificate</a></td> |
|
82 <td>Public method to show the SSL certificate information.</td> |
|
83 </tr><tr> |
|
84 <td><a href="#E5SslCertificatesInfoWidget.showCertificateChain">showCertificateChain</a></td> |
|
85 <td>Public method to show the SSL certificates of a certificate chain.</td> |
|
86 </tr> |
|
87 </table> |
|
88 <h3>Static Methods</h3> |
|
89 <table> |
|
90 <tr><td>None</td></tr> |
|
91 </table> |
|
92 <a NAME="E5SslCertificatesInfoWidget.__init__" ID="E5SslCertificatesInfoWidget.__init__"></a> |
|
93 <h4>E5SslCertificatesInfoWidget (Constructor)</h4> |
|
94 <b>E5SslCertificatesInfoWidget</b>(<i>parent=None</i>) |
|
95 <p> |
|
96 Constructor |
|
97 </p><dl> |
|
98 <dt><i>parent</i></dt> |
|
99 <dd> |
|
100 reference to the parent widget (QWidget) |
|
101 </dd> |
|
102 </dl><a NAME="E5SslCertificatesInfoWidget.__certificateString" ID="E5SslCertificatesInfoWidget.__certificateString"></a> |
|
103 <h4>E5SslCertificatesInfoWidget.__certificateString</h4> |
|
104 <b>__certificateString</b>(<i>txt</i>) |
|
105 <p> |
|
106 Private method to prepare some text for display. |
|
107 </p><dl> |
|
108 <dt><i>txt</i></dt> |
|
109 <dd> |
|
110 text to be displayed (string) |
|
111 </dd> |
|
112 </dl><dl> |
|
113 <dt>Returns:</dt> |
|
114 <dd> |
|
115 prepared text (string) |
|
116 </dd> |
|
117 </dl><a NAME="E5SslCertificatesInfoWidget.__formatHexString" ID="E5SslCertificatesInfoWidget.__formatHexString"></a> |
|
118 <h4>E5SslCertificatesInfoWidget.__formatHexString</h4> |
|
119 <b>__formatHexString</b>(<i>hexString</i>) |
|
120 <p> |
|
121 Private method to format a hex string for display. |
|
122 </p><dl> |
|
123 <dt><i>hexString</i></dt> |
|
124 <dd> |
|
125 hex string to be formatted (string) |
|
126 </dd> |
|
127 </dl><dl> |
|
128 <dt>Returns:</dt> |
|
129 <dd> |
|
130 formatted string (string) |
|
131 </dd> |
|
132 </dl><a NAME="E5SslCertificatesInfoWidget.__hasExpired" ID="E5SslCertificatesInfoWidget.__hasExpired"></a> |
|
133 <h4>E5SslCertificatesInfoWidget.__hasExpired</h4> |
|
134 <b>__hasExpired</b>(<i>effectiveDate, expiryDate</i>) |
|
135 <p> |
|
136 Private method to check for a certificate expiration. |
|
137 </p><dl> |
|
138 <dt><i>effectiveDate</i></dt> |
|
139 <dd> |
|
140 date the certificate becomes effective (QDateTime) |
|
141 </dd><dt><i>expiryDate</i></dt> |
|
142 <dd> |
|
143 date the certificate expires (QDateTime) |
|
144 </dd> |
|
145 </dl><dl> |
|
146 <dt>Returns:</dt> |
|
147 <dd> |
|
148 flag indicating the expiration status (boolean) |
|
149 </dd> |
|
150 </dl><a NAME="E5SslCertificatesInfoWidget.__serialNumber" ID="E5SslCertificatesInfoWidget.__serialNumber"></a> |
|
151 <h4>E5SslCertificatesInfoWidget.__serialNumber</h4> |
|
152 <b>__serialNumber</b>(<i>cert</i>) |
|
153 <p> |
|
154 Private slot to format the certificate serial number. |
|
155 </p><dl> |
|
156 <dt><i>cert</i></dt> |
|
157 <dd> |
|
158 reference to the SSL certificate (QSslCertificate) |
|
159 </dd> |
|
160 </dl><dl> |
|
161 <dt>Returns:</dt> |
|
162 <dd> |
|
163 formated serial number (string) |
|
164 </dd> |
|
165 </dl><a NAME="E5SslCertificatesInfoWidget.__showCertificate" ID="E5SslCertificatesInfoWidget.__showCertificate"></a> |
|
166 <h4>E5SslCertificatesInfoWidget.__showCertificate</h4> |
|
167 <b>__showCertificate</b>(<i>certificate</i>) |
|
168 <p> |
|
169 Private method to show the SSL certificate information. |
|
170 </p><dl> |
|
171 <dt><i>certificate</i></dt> |
|
172 <dd> |
|
173 reference to the SSL certificate (QSslCertificate) |
|
174 </dd> |
|
175 </dl><a NAME="E5SslCertificatesInfoWidget.on_chainComboBox_activated" ID="E5SslCertificatesInfoWidget.on_chainComboBox_activated"></a> |
|
176 <h4>E5SslCertificatesInfoWidget.on_chainComboBox_activated</h4> |
|
177 <b>on_chainComboBox_activated</b>(<i>index</i>) |
|
178 <p> |
|
179 Private slot to show the certificate info for the selected entry. |
|
180 </p><dl> |
|
181 <dt><i>index</i></dt> |
|
182 <dd> |
|
183 number of the certificate in the certificate chain |
|
184 (integer) |
|
185 </dd> |
|
186 </dl><a NAME="E5SslCertificatesInfoWidget.showCertificate" ID="E5SslCertificatesInfoWidget.showCertificate"></a> |
|
187 <h4>E5SslCertificatesInfoWidget.showCertificate</h4> |
|
188 <b>showCertificate</b>(<i>certificate</i>) |
|
189 <p> |
|
190 Public method to show the SSL certificate information. |
|
191 </p><dl> |
|
192 <dt><i>certificate</i></dt> |
|
193 <dd> |
|
194 reference to the SSL certificate (QSslCertificate) |
|
195 </dd> |
|
196 </dl><a NAME="E5SslCertificatesInfoWidget.showCertificateChain" ID="E5SslCertificatesInfoWidget.showCertificateChain"></a> |
|
197 <h4>E5SslCertificatesInfoWidget.showCertificateChain</h4> |
|
198 <b>showCertificateChain</b>(<i>certificateChain</i>) |
|
199 <p> |
|
200 Public method to show the SSL certificates of a certificate chain. |
|
201 </p><dl> |
|
202 <dt><i>certificateChain</i></dt> |
|
203 <dd> |
|
204 list od SSL certificates |
|
205 (list of QSslCertificate) |
|
206 </dd> |
|
207 </dl> |
|
208 <div align="right"><a href="#top">Up</a></div> |
|
209 <hr /> |
|
210 </body></html> |