⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 classphttpauthority.html

📁 pwlib开发文档
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>PHTTPAuthority class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center><hr><h1>PHTTPAuthority Class Reference</h1><code>#include &lt;<a class="el" href="http_8h-source.html">http.h</a>&gt;</code><p><p>Inheritance diagram for PHTTPAuthority:<p><center><img src="classPHTTPAuthority.png" usemap="#PHTTPAuthority_map" border="0" alt=""></center><map name="PHTTPAuthority_map"><area href="classPObject.html" alt="PObject" shape="rect" coords="70,0,201,24"><area href="classPHTTPMultiSimpAuth.html" alt="PHTTPMultiSimpAuth" shape="rect" coords="0,112,131,136"><area href="classPHTTPSimpleAuth.html" alt="PHTTPSimpleAuth" shape="rect" coords="141,112,272,136"></map><a href="classPHTTPAuthority-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0><tr><td></td></tr><tr><td colspan=2><br><h2>Public Methods</h2></td></tr><tr><td nowrap align=right valign=top>virtual <a class="el" href="classPString.html">PString</a>&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPAuthority.html#a0">GetRealm</a> (const <a class="el" href="classPHTTPRequest.html">PHTTPRequest</a> &amp;request) const=0</td></tr><tr><td nowrap align=right valign=top>virtual BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPAuthority.html#a1">Validate</a> (const <a class="el" href="classPHTTPRequest.html">PHTTPRequest</a> &amp;request, const <a class="el" href="classPString.html">PString</a> &amp;authInfo) const=0</td></tr><tr><td nowrap align=right valign=top>virtual BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPAuthority.html#a2">IsActive</a> () const</td></tr><tr><td colspan=2><br><h2>Static Protected Methods</h2></td></tr><tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPAuthority.html#e0">DecodeBasicAuthority</a> (const <a class="el" href="classPString.html">PString</a> &amp;authInfo, <a class="el" href="classPString.html">PString</a> &amp;username, <a class="el" href="classPString.html">PString</a> &amp;password)</td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>This abstract class describes the authorisation mechanism for a Universal Resource Locator. <p><hr><h2>Member Function Documentation</h2><a name="e0" doxytag="PHTTPAuthority::DecodeBasicAuthority"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> void PHTTPAuthority::DecodeBasicAuthority </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classPString.html">PString</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>authInfo</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap><a class="el" href="classPString.html">PString</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>username</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap><a class="el" href="classPString.html">PString</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>password</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [static, protected]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>    </td>  </tr></table><a name="a0" doxytag="PHTTPAuthority::GetRealm"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> virtual <a class="el" href="classPString.html">PString</a> PHTTPAuthority::GetRealm </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classPHTTPRequest.html">PHTTPRequest</a> &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>request</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap> const<code> [pure virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Get the realm or name space for the user authorisation name and password as required by the basic authorisation system of HTTP/1.0.<p><dl compact><dt><b>Returns: </b></dt><dd> String for the authorisation realm name. </dl><p>Implemented in <a class="el" href="classPHTTPSimpleAuth.html#a2">PHTTPSimpleAuth</a>, and <a class="el" href="classPHTTPMultiSimpAuth.html#a3">PHTTPMultiSimpAuth</a>.    </td>  </tr></table><a name="a2" doxytag="PHTTPAuthority::IsActive"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> virtual BOOL PHTTPAuthority::IsActive </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Determine if the authirisation is to be applied. This could be used to distinguish between net requiring authorisation and requiring autorisation but having no password.<p>The default behaviour is to return TRUE.<p><dl compact><dt><b>Returns: </b></dt><dd> TRUE if the authorisation in the realm is to be applied. </dl><p>Reimplemented in <a class="el" href="classPHTTPSimpleAuth.html#a4">PHTTPSimpleAuth</a>, and <a class="el" href="classPHTTPMultiSimpAuth.html#a5">PHTTPMultiSimpAuth</a>.    </td>  </tr></table><a name="a1" doxytag="PHTTPAuthority::Validate"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> virtual BOOL PHTTPAuthority::Validate </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classPHTTPRequest.html">PHTTPRequest</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>request</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>const <a class="el" href="classPString.html">PString</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>authInfo</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"> const<code> [pure virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Validate the user and password provided by the remote HTTP client for the realm specified by the class instance.<p><dl compact><dt><b>Returns: </b></dt><dd> TRUE if the user and password are authorised in the realm. </dl><p>Implemented in <a class="el" href="classPHTTPSimpleAuth.html#a3">PHTTPSimpleAuth</a>, and <a class="el" href="classPHTTPMultiSimpAuth.html#a4">PHTTPMultiSimpAuth</a>.    </td>  </tr></table><hr>The documentation for this class was generated from the following file:<ul><li><a class="el" href="http_8h-source.html">http.h</a></ul><hr><address style="align: right;"><small>Generated on Wed Sep 29 22:44:16 2004 for PWLib by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.18 </small></address></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -