Documentation/Source/eric5.E5Network.E5SslErrorHandler.html

changeset 2354
c63de4af553d
child 2360
b6bf3925e3e1
equal deleted inserted replaced
2352:21971ebfaaef 2354:c63de4af553d
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.E5Network.E5SslErrorHandler</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.E5Network.E5SslErrorHandler</h1>
24 <p>
25 Module implementing a SSL error handler.
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="#E5SslErrorHandler">E5SslErrorHandler</a></td>
35 <td>Class implementing a handler for SSL errors.</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="E5SslErrorHandler" ID="E5SslErrorHandler"></a>
44 <h2>E5SslErrorHandler</h2>
45 <p>
46 Class implementing a handler for SSL errors.
47 </p><p>
48 It also initializes the default SSL configuration with certificates
49 permanently accepted by the user already.
50 </p>
51 <h3>Derived from</h3>
52 QObject
53 <h3>Class Attributes</h3>
54 <table>
55 <tr><td>None</td></tr>
56 </table>
57 <h3>Class Methods</h3>
58 <table>
59 <tr><td>None</td></tr>
60 </table>
61 <h3>Methods</h3>
62 <table>
63 <tr>
64 <td><a href="#E5SslErrorHandler.__init__">E5SslErrorHandler</a></td>
65 <td>Constructor</td>
66 </tr><tr>
67 <td><a href="#E5SslErrorHandler.__certToString">__certToString</a></td>
68 <td>Private method to convert a certificate to a formatted string.</td>
69 </tr><tr>
70 <td><a href="#E5SslErrorHandler.__getSystemCaCertificates">__getSystemCaCertificates</a></td>
71 <td>Private method to get the list of system certificates.</td>
72 </tr><tr>
73 <td><a href="#E5SslErrorHandler.sslErrors">sslErrors</a></td>
74 <td>Public method to handle SSL errors.</td>
75 </tr><tr>
76 <td><a href="#E5SslErrorHandler.sslErrorsReply">sslErrorsReply</a></td>
77 <td>Public slot to handle SSL errors for a network reply.</td>
78 </tr><tr>
79 <td><a href="#E5SslErrorHandler.sslErrorsReplySlot">sslErrorsReplySlot</a></td>
80 <td>Public slot to handle SSL errors for a network reply.</td>
81 </tr>
82 </table>
83 <h3>Static Methods</h3>
84 <table>
85 <tr><td>None</td></tr>
86 </table>
87 <a NAME="E5SslErrorHandler.__init__" ID="E5SslErrorHandler.__init__"></a>
88 <h4>E5SslErrorHandler (Constructor)</h4>
89 <b>E5SslErrorHandler</b>(<i>parent=None</i>)
90 <p>
91 Constructor
92 </p><dl>
93 <dt><i>parent</i></dt>
94 <dd>
95 reference to the parent object (QObject)
96 </dd>
97 </dl><a NAME="E5SslErrorHandler.__certToString" ID="E5SslErrorHandler.__certToString"></a>
98 <h4>E5SslErrorHandler.__certToString</h4>
99 <b>__certToString</b>(<i>cert</i>)
100 <p>
101 Private method to convert a certificate to a formatted string.
102 </p><dl>
103 <dt><i>cert</i></dt>
104 <dd>
105 certificate to convert (QSslCertificate)
106 </dd>
107 </dl><dl>
108 <dt>Returns:</dt>
109 <dd>
110 formatted string (string)
111 </dd>
112 </dl><a NAME="E5SslErrorHandler.__getSystemCaCertificates" ID="E5SslErrorHandler.__getSystemCaCertificates"></a>
113 <h4>E5SslErrorHandler.__getSystemCaCertificates</h4>
114 <b>__getSystemCaCertificates</b>(<i></i>)
115 <p>
116 Private method to get the list of system certificates.
117 </p><dl>
118 <dt>Returns:</dt>
119 <dd>
120 list of system certificates (list of QSslCertificate)
121 </dd>
122 </dl><a NAME="E5SslErrorHandler.sslErrors" ID="E5SslErrorHandler.sslErrors"></a>
123 <h4>E5SslErrorHandler.sslErrors</h4>
124 <b>sslErrors</b>(<i>errors, server, port=-1</i>)
125 <p>
126 Public method to handle SSL errors.
127 </p><dl>
128 <dt><i>errors</i></dt>
129 <dd>
130 list of SSL errors (list of QSslError)
131 </dd><dt><i>server</i></dt>
132 <dd>
133 name of the server (string)
134 </dd><dt><i>port=</i></dt>
135 <dd>
136 value of the port (integer)
137 </dd>
138 </dl><dl>
139 <dt>Returns:</dt>
140 <dd>
141 tuple of two flags indicating to ignore the SSL errors (boolean)
142 and indicating a change of the default SSL configuration (boolean)
143 </dd>
144 </dl><a NAME="E5SslErrorHandler.sslErrorsReply" ID="E5SslErrorHandler.sslErrorsReply"></a>
145 <h4>E5SslErrorHandler.sslErrorsReply</h4>
146 <b>sslErrorsReply</b>(<i>reply, errors</i>)
147 <p>
148 Public slot to handle SSL errors for a network reply.
149 </p><dl>
150 <dt><i>reply</i></dt>
151 <dd>
152 reference to the reply object (QNetworkReply)
153 </dd><dt><i>errors</i></dt>
154 <dd>
155 list of SSL errors (list of QSslError)
156 </dd>
157 </dl><dl>
158 <dt>Returns:</dt>
159 <dd>
160 tuple of two flags indicating to ignore the SSL errors (boolean)
161 and indicating a change of the default SSL configuration (boolean)
162 </dd>
163 </dl><a NAME="E5SslErrorHandler.sslErrorsReplySlot" ID="E5SslErrorHandler.sslErrorsReplySlot"></a>
164 <h4>E5SslErrorHandler.sslErrorsReplySlot</h4>
165 <b>sslErrorsReplySlot</b>(<i>reply, errors</i>)
166 <p>
167 Public slot to handle SSL errors for a network reply.
168 </p><dl>
169 <dt><i>reply</i></dt>
170 <dd>
171 reference to the reply object (QNetworkReply)
172 </dd><dt><i>errors</i></dt>
173 <dd>
174 list of SSL errors (list of QSslError)
175 </dd>
176 </dl>
177 <div align="right"><a href="#top">Up</a></div>
178 <hr />
179 </body></html>

eric ide

mercurial