<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <!-- qauthenticator.cpp --> <head> <title>Qt 4.6: QAuthenticator Class Reference</title> <link href="classic.css" rel="stylesheet" type="text/css" /> </head> <body> <a name="//apple_ref/cpp/cl//QAuthenticator"></a> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="left" valign="top" width="32"><a href="http://qt.nokia.com/"><img src="images/qt-logo.png" align="left" border="0" /></a></td> <td width="1"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="functions.html"><font color="#004faf">All Functions</font></a> · <a href="overviews.html"><font color="#004faf">Overviews</font></a></td></tr></table><h1 class="title">QAuthenticator Class Reference<br /><span class="small-subtitle">[<a href="qtnetwork.html">QtNetwork</a> module]</span> </h1> <p>The QAuthenticator class provides an authentication object. <a href="#details">More...</a></p> <pre> #include <QAuthenticator></pre><p><b>This class is not part of the Qt GUI Framework Edition.</b></p> <p><b>Note:</b> All functions in this class are <a href="threads-reentrancy.html#reentrant">reentrant</a>.</p> <p>This class was introduced in Qt 4.3.</p> <ul> <li><a href="qauthenticator-members.html">List of all members, including inherited members</a></li> </ul> <hr /> <a name="public-functions"></a> <h2>Public Functions</h2> <table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%"> <tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qauthenticator.html#QAuthenticator">QAuthenticator</a></b> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qauthenticator.html#QAuthenticator-2">QAuthenticator</a></b> ( const QAuthenticator & <i>other</i> )</td></tr> <tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qauthenticator.html#dtor.QAuthenticator">~QAuthenticator</a></b> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="qauthenticator.html#isNull">isNull</a></b> () const</td></tr> <tr><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><b><a href="qauthenticator.html#password">password</a></b> () const</td></tr> <tr><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><b><a href="qauthenticator.html#realm">realm</a></b> () const</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qauthenticator.html#setPassword">setPassword</a></b> ( const QString & <i>password</i> )</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qauthenticator.html#setUser">setUser</a></b> ( const QString & <i>user</i> )</td></tr> <tr><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><b><a href="qauthenticator.html#user">user</a></b> () const</td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="qauthenticator.html#operator-not-eq">operator!=</a></b> ( const QAuthenticator & <i>other</i> ) const</td></tr> <tr><td class="memItemLeft" align="right" valign="top">QAuthenticator & </td><td class="memItemRight" valign="bottom"><b><a href="qauthenticator.html#operator-eq">operator=</a></b> ( const QAuthenticator & <i>other</i> )</td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="qauthenticator.html#operator-eq-eq">operator==</a></b> ( const QAuthenticator & <i>other</i> ) const</td></tr> </table> <a name="details"></a> <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>Member Function Documentation</h2> <a name="//apple_ref/cpp/instm/QAuthenticator/QAuthenticator"></a> <h3 class="fn"><a name="QAuthenticator"></a>QAuthenticator::QAuthenticator ()</h3> <p>Constructs an empty authentication object</p> <h3 class="fn"><a name="QAuthenticator-2"></a>QAuthenticator::QAuthenticator ( const QAuthenticator & <i>other</i> )</h3> <p>Constructs a copy of <i>other</i>.</p> <a name="//apple_ref/cpp/instm/QAuthenticator/~QAuthenticator"></a> <h3 class="fn"><a name="dtor.QAuthenticator"></a>QAuthenticator::~QAuthenticator ()</h3> <p>Destructs the object</p> <a name="//apple_ref/cpp/instm/QAuthenticator/isNull"></a> <h3 class="fn"><a name="isNull"></a>bool QAuthenticator::isNull () const</h3> <p>returns true if the authenticator is null.</p> <a name="//apple_ref/cpp/instm/QAuthenticator/password"></a> <h3 class="fn"><a name="password"></a><a href="qstring.html">QString</a> QAuthenticator::password () const</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"></a> <h3 class="fn"><a name="realm"></a><a href="qstring.html">QString</a> QAuthenticator::realm () const</h3> <p>returns the realm requiring authentication.</p> <a name="//apple_ref/cpp/instm/QAuthenticator/setPassword"></a> <h3 class="fn"><a name="setPassword"></a>void QAuthenticator::setPassword ( const <a href="qstring.html">QString</a> & <i>password</i> )</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"></a> <h3 class="fn"><a name="setUser"></a>void QAuthenticator::setUser ( const <a href="qstring.html">QString</a> & <i>user</i> )</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"></a> <h3 class="fn"><a name="user"></a><a href="qstring.html">QString</a> QAuthenticator::user () const</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!="></a> <h3 class="fn"><a name="operator-not-eq"></a>bool QAuthenticator::operator!= ( const QAuthenticator & <i>other</i> ) const</h3> <p>Returns true if this authenticator is different from <i>other</i>; otherwise returns false.</p> <a name="//apple_ref/cpp/instm/QAuthenticator/operator="></a> <h3 class="fn"><a name="operator-eq"></a>QAuthenticator & QAuthenticator::operator= ( const QAuthenticator & <i>other</i> )</h3> <p>Assigns the contents of <i>other</i> to this authenticator.</p> <a name="//apple_ref/cpp/instm/QAuthenticator/operator=="></a> <h3 class="fn"><a name="operator-eq-eq"></a>bool QAuthenticator::operator== ( const QAuthenticator & <i>other</i> ) const</h3> <p>Returns true if this authenticator is identical to <i>other</i>; otherwise returns false.</p> <p /><address><hr /><div align="center"> <table width="100%" cellspacing="0" border="0"><tr class="address"> <td width="40%" align="left">Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies)</td> <td width="20%" align="center"><a href="trademarks.html">Trademarks</a></td> <td width="40%" align="right"><div align="right">Qt 4.6.3</div></td> </tr></table></div></address></body> </html>