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
|
<?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>QAuthenticator 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">  </td><td class="postheader" valign="center"><a href="../pyqt4ref.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QAuthenticator Class Reference<br /><sup><sup>[<a href="qtnetwork.html">QtNetwork</a> module]</sup></sup></h1><p>The QAuthenticator class provides an authentication object. <a href="#details">More...</a></p>
<h3>Methods</h3><ul><li><div class="fn" /><b><a href="qauthenticator.html#QAuthenticator">__init__</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qauthenticator.html#QAuthenticator-2">__init__</a></b> (<i>self</i>, QAuthenticator)</li><li><div class="fn" />bool <b><a href="qauthenticator.html#isNull">isNull</a></b> (<i>self</i>)</li><li><div class="fn" />QString <b><a href="qauthenticator.html#password">password</a></b> (<i>self</i>)</li><li><div class="fn" />QString <b><a href="qauthenticator.html#realm">realm</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qauthenticator.html#setPassword">setPassword</a></b> (<i>self</i>, QString)</li><li><div class="fn" /><b><a href="qauthenticator.html#setUser">setUser</a></b> (<i>self</i>, QString)</li><li><div class="fn" />QString <b><a href="qauthenticator.html#user">user</a></b> (<i>self</i>)</li></ul><h3>Special Methods</h3><ul><li><div class="fn" />bool <b><a href="qauthenticator.html#__eq__">__eq__</a></b> (<i>self</i>, QAuthenticator)</li><li><div class="fn" />bool <b><a href="qauthenticator.html#__ne__">__ne__</a></b> (<i>self</i>, QAuthenticator)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QAuthenticator class provides an authentication object.</p>
<p>The QAuthenticator class is usually used in the <a href="qnetworkaccessmanager.html#authenticationRequired">authenticationRequired()</a> and <a href="qnetworkaccessmanager.html#proxyAuthenticationRequired">proxyAuthenticationRequired()</a> signals of <a href="qnetworkaccessmanager.html">QNetworkAccessManager</a> and <a href="qabstractsocket.html">QAbstractSocket</a>. The class provides a way to pass back the required authentication information to the socket when accessing services that require authentication.</p>
<p>QAuthenticator supports the following authentication methods:</p>
<ul>
<li>Basic</li>
<li>NTLM version 1</li>
<li>Digest-MD5</li>
</ul>
<p>Note that, in particular, NTLM version 2 is not supported.</p>
<p>See also <a href="qsslsocket.html">QSslSocket</a>.</p>
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QAuthenticator" />QAuthenticator.__init__ (<i>self</i>)</h3><p>Constructs an empty authentication object</p>
<h3 class="fn"><a name="QAuthenticator-2" />QAuthenticator.__init__ (<i>self</i>, <a href="qauthenticator.html">QAuthenticator</a>)</h3><p>Constructs a copy of <i>other</i>.</p>
<a name="//apple_ref/cpp/instm/QAuthenticator/~QAuthenticator" />
<h3 class="fn"><a name="isNull" />bool QAuthenticator.isNull (<i>self</i>)</h3><p>returns true if the authenticator is null.</p>
<a name="//apple_ref/cpp/instm/QAuthenticator/password" />
<h3 class="fn"><a name="password" />QString QAuthenticator.password (<i>self</i>)</h3><p>returns the password used for authentication.</p>
<p>See also <a href="qauthenticator.html#setPassword">setPassword</a>().</p>
<a name="//apple_ref/cpp/instm/QAuthenticator/realm" />
<h3 class="fn"><a name="realm" />QString QAuthenticator.realm (<i>self</i>)</h3><p>returns the realm requiring authentication.</p>
<a name="//apple_ref/cpp/instm/QAuthenticator/setPassword" />
<h3 class="fn"><a name="setPassword" />QAuthenticator.setPassword (<i>self</i>, QString)</h3><p>Sets the <i>password</i> used for authentication.</p>
<p>See also <a href="qauthenticator.html#password">password</a>().</p>
<a name="//apple_ref/cpp/instm/QAuthenticator/setUser" />
<h3 class="fn"><a name="setUser" />QAuthenticator.setUser (<i>self</i>, QString)</h3><p>Sets the <i>user</i> used for authentication.</p>
<p>See also <a href="qauthenticator.html#user">user</a>().</p>
<a name="//apple_ref/cpp/instm/QAuthenticator/user" />
<h3 class="fn"><a name="user" />QString QAuthenticator.user (<i>self</i>)</h3><p>returns the user used for authentication.</p>
<p>See also <a href="qauthenticator.html#setUser">setUser</a>().</p>
<a name="//apple_ref/cpp/instm/QAuthenticator/operator!=" />
<h3 class="fn"><a name="__eq__" />bool QAuthenticator.__eq__ (<i>self</i>, <a href="qauthenticator.html">QAuthenticator</a>)</h3><h3 class="fn"><a name="__ne__" />bool QAuthenticator.__ne__ (<i>self</i>, <a href="qauthenticator.html">QAuthenticator</a>)</h3><address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt 4.7.3 for X11</td><td align="center" width="50%">Copyright © <a href="http://www.riverbankcomputing.com">Riverbank Computing Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2010</td><td align="right" width="25%">Qt 4.6.2</td></tr></table></div></address></body></html>
|