~ubuntu-branches/ubuntu/raring/python-qt4/raring-proposed

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html><head><title>QSslError Class Reference</title><style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
td.postheader { font-family: sans-serif }
tr.address { font-family: sans-serif }
body { background: #ffffff; color: black; }
</style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">&#160;&#160;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&#160;&#183; <a href="classes.html"><font color="#004faf">All Classes</font></a>&#160;&#183; <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QSslError Class Reference<br /><sup><sup>[<a href="qtnetwork.html">QtNetwork</a> module]</sup></sup></h1><p>The QSslError class provides an SSL error. <a href="#details">More...</a></p>

<h3>Types</h3><ul><li><div class="fn" />enum <b><a href="qsslerror.html#SslError-enum">SslError</a></b> { UnspecifiedError, NoError, UnableToGetIssuerCertificate, UnableToDecryptCertificateSignature, ..., CertificateBlacklisted }</li></ul><h3>Methods</h3><ul><li><div class="fn" /><b><a href="qsslerror.html#QSslError">__init__</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qsslerror.html#QSslError-2">__init__</a></b> (<i>self</i>, SslError&#160;<i>error</i>)</li><li><div class="fn" /><b><a href="qsslerror.html#QSslError-3">__init__</a></b> (<i>self</i>, SslError&#160;<i>error</i>, QSslCertificate&#160;<i>certificate</i>)</li><li><div class="fn" /><b><a href="qsslerror.html#QSslError-4">__init__</a></b> (<i>self</i>, QSslError&#160;<i>other</i>)</li><li><div class="fn" />QSslCertificate <b><a href="qsslerror.html#certificate">certificate</a></b> (<i>self</i>)</li><li><div class="fn" />SslError <b><a href="qsslerror.html#error">error</a></b> (<i>self</i>)</li><li><div class="fn" />QString <b><a href="qsslerror.html#errorString">errorString</a></b> (<i>self</i>)</li></ul><h3>Special Methods</h3><ul><li><div class="fn" />bool <b><a href="qsslerror.html#__eq__">__eq__</a></b> (<i>self</i>, QSslError&#160;<i>other</i>)</li><li><div class="fn" />bool <b><a href="qsslerror.html#__ne__">__ne__</a></b> (<i>self</i>, QSslError&#160;<i>other</i>)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QSslError class provides an SSL error.</p>
<p>QSslError provides a simple API for managing errors during
<a href="qsslsocket.html">QSslSocket</a>'s SSL handshake.</p>
<hr /><h2>Type Documentation</h2><h3 class="fn"><a name="SslError-enum" />QSslError.SslError</h3><p>Describes all recognized errors that can occur during an SSL
handshake.</p>
<table class="valuelist">
<tr>
<th class="tblConst">Constant</th>
<th class="tblVal">Value</th>
</tr>
<tr>
<td class="topAlign"><tt>QSslError.NoError</tt></td>
<td class="topAlign"><tt>0</tt></td>
</tr>
<tr>
<td class="topAlign">
<tt>QSslError.UnableToGetIssuerCertificate</tt></td>
<td class="topAlign"><tt>1</tt></td>
</tr>
<tr>
<td class="topAlign">
<tt>QSslError.UnableToDecryptCertificateSignature</tt></td>
<td class="topAlign"><tt>2</tt></td>
</tr>
<tr>
<td class="topAlign">
<tt>QSslError.UnableToDecodeIssuerPublicKey</tt></td>
<td class="topAlign"><tt>3</tt></td>
</tr>
<tr>
<td class="topAlign">
<tt>QSslError.CertificateSignatureFailed</tt></td>
<td class="topAlign"><tt>4</tt></td>
</tr>
<tr>
<td class="topAlign">
<tt>QSslError.CertificateNotYetValid</tt></td>
<td class="topAlign"><tt>5</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QSslError.CertificateExpired</tt></td>
<td class="topAlign"><tt>6</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QSslError.InvalidNotBeforeField</tt></td>
<td class="topAlign"><tt>7</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QSslError.InvalidNotAfterField</tt></td>
<td class="topAlign"><tt>8</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QSslError.SelfSignedCertificate</tt></td>
<td class="topAlign"><tt>9</tt></td>
</tr>
<tr>
<td class="topAlign">
<tt>QSslError.SelfSignedCertificateInChain</tt></td>
<td class="topAlign"><tt>10</tt></td>
</tr>
<tr>
<td class="topAlign">
<tt>QSslError.UnableToGetLocalIssuerCertificate</tt></td>
<td class="topAlign"><tt>11</tt></td>
</tr>
<tr>
<td class="topAlign">
<tt>QSslError.UnableToVerifyFirstCertificate</tt></td>
<td class="topAlign"><tt>12</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QSslError.CertificateRevoked</tt></td>
<td class="topAlign"><tt>13</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QSslError.InvalidCaCertificate</tt></td>
<td class="topAlign"><tt>14</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QSslError.PathLengthExceeded</tt></td>
<td class="topAlign"><tt>15</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QSslError.InvalidPurpose</tt></td>
<td class="topAlign"><tt>16</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QSslError.CertificateUntrusted</tt></td>
<td class="topAlign"><tt>17</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QSslError.CertificateRejected</tt></td>
<td class="topAlign"><tt>18</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QSslError.SubjectIssuerMismatch</tt></td>
<td class="topAlign"><tt>19</tt></td>
</tr>
<tr>
<td class="topAlign">
<tt>QSslError.AuthorityIssuerSerialNumberMismatch</tt></td>
<td class="topAlign"><tt>20</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QSslError.NoPeerCertificate</tt></td>
<td class="topAlign"><tt>21</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QSslError.HostNameMismatch</tt></td>
<td class="topAlign"><tt>22</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QSslError.UnspecifiedError</tt></td>
<td class="topAlign"><tt>-1</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QSslError.NoSslSupport</tt></td>
<td class="topAlign"><tt>23</tt></td>
</tr>
<tr>
<td class="topAlign">
<tt>QSslError.CertificateBlacklisted</tt></td>
<td class="topAlign"><tt>24</tt></td>
</tr>
</table>
<p><b>See also</b> <a href="qsslerror.html#errorString">QSslError.errorString</a>().</p>
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QSslError" />QSslError.__init__ (<i>self</i>)</h3><p>Constructs a <a href="qsslerror.html">QSslError</a> object with
no error and default certificate.</p>


<h3 class="fn"><a name="QSslError-2" />QSslError.__init__ (<i>self</i>, <a href="qsslerror.html#SslError-enum">SslError</a>&#160;<i>error</i>)</h3><p>Constructs a <a href="qsslerror.html">QSslError</a> object. The
argument specifies the <i>error</i> that occurred.</p>


<h3 class="fn"><a name="QSslError-3" />QSslError.__init__ (<i>self</i>, <a href="qsslerror.html#SslError-enum">SslError</a>&#160;<i>error</i>, <a href="qsslcertificate.html">QSslCertificate</a>&#160;<i>certificate</i>)</h3><p>Constructs a <a href="qsslerror.html">QSslError</a> object. The
two arguments specify the <i>error</i> that occurred, and which
<i>certificate</i> the error relates to.</p>
<p><b>See also</b> <a href="qsslcertificate.html">QSslCertificate</a>.</p>


<h3 class="fn"><a name="QSslError-4" />QSslError.__init__ (<i>self</i>, <a href="qsslerror.html">QSslError</a>&#160;<i>other</i>)</h3><p>Constructs an identical copy of <i>other</i>.</p>


<h3 class="fn"><a name="certificate" /><a href="qsslcertificate.html">QSslCertificate</a> QSslError.certificate (<i>self</i>)</h3><p>Returns the certificate associated with this error, or a null
certificate if the error does not relate to any certificate.</p>
<p><b>See also</b> <a href="qsslerror.html#error">error</a>() and
<a href="qsslerror.html#errorString">errorString</a>().</p>


<h3 class="fn"><a name="error" /><a href="qsslerror.html#SslError-enum">SslError</a> QSslError.error (<i>self</i>)</h3><p>Returns the type of the error.</p>
<p><b>See also</b> <a href="qsslerror.html#errorString">errorString</a>() and <a href="qsslerror.html#certificate">certificate</a>().</p>


<h3 class="fn"><a name="errorString" />QString QSslError.errorString (<i>self</i>)</h3><p>Returns a short localized human-readable description of the
error.</p>
<p><b>See also</b> <a href="qsslerror.html#error">error</a>() and
<a href="qsslerror.html#certificate">certificate</a>().</p>


<h3 class="fn"><a name="__eq__" />bool QSslError.__eq__ (<i>self</i>, <a href="qsslerror.html">QSslError</a>&#160;<i>other</i>)</h3><h3 class="fn"><a name="__ne__" />bool QSslError.__ne__ (<i>self</i>, <a href="qsslerror.html">QSslError</a>&#160;<i>other</i>)</h3><address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt&#160;4.9.6 for X11</td><td align="center" width="50%">Copyright &#169; <a href="http://www.riverbankcomputing.com">Riverbank&#160;Computing&#160;Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2012</td><td align="right" width="25%">Qt&#160;4.8.4</td></tr></table></div></address></body></html>