Ignore:
Timestamp:
29/09/08 16:05:29 (11 years ago)
Author:
pjkersha
Message:

Working unit tests for WSGI based Attribute Authority.

  • Altered so that all Attribute Config is picked up from the Paste ini file. Separate cfg or xml based config file is still supported.

TODO:

  • Simplify unit test config for client.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/documentation/epydoc/ndg.security.common.CredWallet.NullCredRepos-class.html

    r3153 r4245  
    6060</table> 
    6161<!-- ==================== CLASS DESCRIPTION ==================== --> 
    62 <h1 class="epydoc">Class NullCredRepos</h1><span class="codelink"><a href="ndg.security.common.CredWallet-pysrc.html#NullCredRepos">source&nbsp;code</a></span><br /><br /> 
     62<h1 class="epydoc">Class NullCredRepos</h1><p class="nomargin-top"><span class="codelink"><a href="ndg.security.common.CredWallet-pysrc.html#NullCredRepos">source&nbsp;code</a></span></p> 
    6363<center> 
    64 <center>  <map id="uml_class_diagram_for_ndg_secu_33" name="uml_class_diagram_for_ndg_secu_33"> 
    65 <area shape="rect" href="ndg.security.common.CredWallet.CredRepos&#45;class.html" title="CredWallet&#39;s interface class to a Credential Repository" alt="" coords="15,11,67,27"/> 
    66 <area shape="rect" href="ndg.security.common.CredWallet.NullCredRepos&#45;class.html" title="Implementation of Credential Repository interface with empty stubs." alt="" coords="15,56,67,72"/> 
     64<center>  <map id="uml_class_diagram_for_ndg_secu_44" name="uml_class_diagram_for_ndg_secu_44"> 
     65<area shape="rect" href="ndg.security.common.CredWallet.CredRepos&#45;class.html" title="CredWallet&#39;s interface class to a Credential Repository" alt="" coords="164,11,233,43"/> 
     66<area shape="rect" href="ndg.security.common.CredWallet.NullCredRepos&#45;class.html#__init__" title="Initialise Credential Repository abstract base class derive from this class to define Credentail Repository interface Credential Wallet" alt="" coords="17,98,380,116"/> 
     67<area shape="rect" href="ndg.security.common.CredWallet.NullCredRepos&#45;class.html#addUser" title="A new user to Credentials Repository" alt="" coords="17,116,380,135"/> 
     68<area shape="rect" href="ndg.security.common.CredWallet.NullCredRepos&#45;class.html#auditCredentials" title="Check the attribute certificates held in the repository and delete any that have expired" alt="" coords="17,135,380,154"/> 
     69<area shape="rect" href="ndg.security.common.CredWallet.NullCredRepos&#45;class.html#getCredentials" title="Get the list of credentials for a given users DN" alt="" coords="17,154,380,172"/> 
     70<area shape="rect" href="ndg.security.common.CredWallet.NullCredRepos&#45;class.html#addCredentials" title="Add new attribute certificates for a user." alt="" coords="17,172,380,191"/> 
     71<area shape="rect" href="ndg.security.common.CredWallet.NullCredRepos&#45;class.html" title="Implementation of Credential Repository interface with empty stubs." alt="" coords="16,72,381,192"/> 
    6772</map> 
    68   <img src="uml_class_diagram_for_ndg_secu_33.gif" alt='' usemap="#uml_class_diagram_for_ndg_secu_33" ismap="ismap" class="graph-without-title" /> 
    69 </center></center> 
     73  <img src="uml_class_diagram_for_ndg_secu_44.gif" alt='' usemap="#uml_class_diagram_for_ndg_secu_44" ismap="ismap" class="graph-without-title" /> 
     74</center> 
     75</center> 
    7076<hr /> 
    71 Implementation of Credential Repository interface with empty stubs.  
    72   This allows for where no Credential Repository is required<br /><br /> 
     77<p>Implementation of Credential Repository interface with empty stubs.  
     78  This allows for where no Credential Repository is required</p> 
    7379 
    7480<!-- ==================== INSTANCE METHODS ==================== --> 
     
    99105        <span class="summary-sig-arg">dbPPhrase</span>=<span class="summary-sig-default">None</span>, 
    100106        <span class="summary-sig-arg">**prop</span>)</span><br /> 
    101       Initialise Credential Repository abstract base class derive from  
    102       this class to define Credentail Repository interface Credential  
    103       Wallet</td> 
     107      Initialise Credential Repository abstract base class derive from this 
     108      class to define Credentail Repository interface Credential Wallet</td> 
    104109          <td align="right" valign="top"> 
    105110            <span class="codelink"><a href="ndg.security.common.CredWallet-pysrc.html#NullCredRepos.__init__">source&nbsp;code</a></span> 
     
    139144        <span class="summary-sig-arg">**attCertValidKeys</span>)</span><br /> 
    140145      Check the attribute certificates held in the repository and delete 
    141 any that have expired 
    142  
    143 @type attCertValidKeys: dict 
    144 @param **attCertValidKeys: keywords which set how to check the  
    145 Attribute Certificate e.g.</td> 
     146any that have expired</td> 
    146147          <td align="right" valign="top"> 
    147148            <span class="codelink"><a href="ndg.security.common.CredWallet-pysrc.html#NullCredRepos.auditCredentials">source&nbsp;code</a></span> 
     
    225226    ><span class="codelink"><a href="ndg.security.common.CredWallet-pysrc.html#NullCredRepos.__init__">source&nbsp;code</a></span>&nbsp; 
    226227    </td> 
    227   </table> 
     228  </tr></table> 
    228229   
    229230  <p>Initialise Credential Repository abstract base class derive from this  
    230231  class to define Credentail Repository interface Credential Wallet</p> 
    231   If the connection string or properties file is set a connection will  
    232   be made 
     232  <p>If the connection string or properties file is set a connection will  
     233  be made</p> 
    233234  <dl class="fields"> 
     235    <dt>Parameters:</dt> 
     236    <dd><ul class="nomargin-top"> 
     237        <li><strong class="pname"><code>dbPPhrase</code></strong> - pass-phrase to database if applicable</li> 
     238        <li><strong class="pname"><code>propFilePath</code></strong> - file path to a properties file.  This could contain configuration 
     239          parameters for the repository e.g.  database connection  
     240          parameters</li> 
     241        <li><strong class="pname"><code>**prop</code></strong> - any other keywords required</li> 
     242    </ul></dd> 
    234243    <dt>Overrides: 
    235       <a href="ndg.security.common.CredWallet.CredRepos-class.html#__init__">CredRepos.__init__</a> 
     244        <a href="ndg.security.common.CredWallet.CredRepos-class.html#__init__">CredRepos.__init__</a> 
    236245        <dd><em class="note">(inherited documentation)</em></dd> 
    237246    </dt> 
     
    253262    ><span class="codelink"><a href="ndg.security.common.CredWallet-pysrc.html#NullCredRepos.addUser">source&nbsp;code</a></span>&nbsp; 
    254263    </td> 
    255   </table> 
     264  </tr></table> 
    256265   
    257   A new user to Credentials Repository 
     266  <p>A new user to Credentials Repository</p> 
    258267  <dl class="fields"> 
     268    <dt>Parameters:</dt> 
     269    <dd><ul class="nomargin-top"> 
     270        <li><strong class="pname"><code>username</code></strong> - username for new user</li> 
     271        <li><strong class="pname"><code>dn</code></strong> - users Distinguished Name</li> 
     272    </ul></dd> 
    259273    <dt>Overrides: 
    260       <a href="ndg.security.common.CredWallet.CredRepos-class.html#addUser">CredRepos.addUser</a> 
     274        <a href="ndg.security.common.CredWallet.CredRepos-class.html#addUser">CredRepos.addUser</a> 
    261275        <dd><em class="note">(inherited documentation)</em></dd> 
    262276    </dt> 
     
    277291    ><span class="codelink"><a href="ndg.security.common.CredWallet-pysrc.html#NullCredRepos.auditCredentials">source&nbsp;code</a></span>&nbsp; 
    278292    </td> 
    279   </table> 
     293  </tr></table> 
    280294   
    281295  <pre class="literalblock"> 
     
    291305  <dl class="fields"> 
    292306    <dt>Overrides: 
    293       <a href="ndg.security.common.CredWallet.CredRepos-class.html#auditCredentials">CredRepos.auditCredentials</a> 
     307        <a href="ndg.security.common.CredWallet.CredRepos-class.html#auditCredentials">CredRepos.auditCredentials</a> 
    294308        <dd><em class="note">(inherited documentation)</em></dd> 
    295309    </dt> 
     
    310324    ><span class="codelink"><a href="ndg.security.common.CredWallet-pysrc.html#NullCredRepos.getCredentials">source&nbsp;code</a></span>&nbsp; 
    311325    </td> 
    312   </table> 
     326  </tr></table> 
    313327   
    314   Get the list of credentials for a given users DN 
     328  <p>Get the list of credentials for a given users DN</p> 
    315329  <dl class="fields"> 
     330    <dt>Parameters:</dt> 
     331    <dd><ul class="nomargin-top"> 
     332        <li><strong class="pname"><code>dn</code></strong> - users distinguished name</li> 
     333    </ul></dd> 
    316334    <dt>Returns: list</dt> 
    317335        <dd>list of Attribute Certificates</dd> 
    318336    <dt>Overrides: 
    319       <a href="ndg.security.common.CredWallet.CredRepos-class.html#getCredentials">CredRepos.getCredentials</a> 
     337        <a href="ndg.security.common.CredWallet.CredRepos-class.html#getCredentials">CredRepos.getCredentials</a> 
    320338        <dd><em class="note">(inherited documentation)</em></dd> 
    321339    </dt> 
     
    337355    ><span class="codelink"><a href="ndg.security.common.CredWallet-pysrc.html#NullCredRepos.addCredentials">source&nbsp;code</a></span>&nbsp; 
    338356    </td> 
    339   </table> 
     357  </tr></table> 
    340358   
    341   Add new attribute certificates for a user.  The user must have been  
    342   previously registered in the repository 
     359  <p>Add new attribute certificates for a user.  The user must have been  
     360  previously registered in the repository</p> 
    343361  <dl class="fields"> 
     362    <dt>Parameters:</dt> 
     363    <dd><ul class="nomargin-top"> 
     364        <li><strong class="pname"><code>dn</code></strong> - users Distinguished name</li> 
     365        <li><strong class="pname"><code>attCertList</code></strong> - list of attribute certificates</li> 
     366    </ul></dd> 
    344367    <dt>Overrides: 
    345       <a href="ndg.security.common.CredWallet.CredRepos-class.html#addCredentials">CredRepos.addCredentials</a> 
     368        <a href="ndg.security.common.CredWallet.CredRepos-class.html#addCredentials">CredRepos.addCredentials</a> 
    346369        <dd><em class="note">(inherited documentation)</em></dd> 
    347370    </dt> 
     
    382405    <td align="left" class="footer"> 
    383406    <a href="epydoc-log.html">Generated by Epydoc 
    384     3.0beta1 on Mon Dec 17 09:22:43 2007</a> 
     407    3.0.1 on Thu Sep  4 09:37:43 2008</a> 
    385408    </td> 
    386409    <td align="right" class="footer"> 
    387       <a href="http://epydoc.sourceforge.net">http://epydoc.sourceforge.net</a> 
     410      <a target="mainFrame" href="http://epydoc.sourceforge.net" 
     411        >http://epydoc.sourceforge.net</a> 
    388412    </td> 
    389413  </tr> 
     
    396420  // visible); but by default, we want to hide them.  So hide 
    397421  // them unless we have a cookie that says to show them. 
    398   checkCookie() 
     422  checkCookie(); 
    399423  // --> 
    400424</script> 
    401    
    402425</body> 
    403426</html> 
Note: See TracChangeset for help on using the changeset viewer.