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.X509.X509Stack-class.html

    r3153 r4245  
    6060</table> 
    6161<!-- ==================== CLASS DESCRIPTION ==================== --> 
    62 <h1 class="epydoc">Class X509Stack</h1><span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X509Stack">source&nbsp;code</a></span><br /><br /> 
     62<h1 class="epydoc">Class X509Stack</h1><p class="nomargin-top"><span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X509Stack">source&nbsp;code</a></span></p> 
    6363<center> 
    64 <center>  <map id="uml_class_diagram_for_ndg_secu_71" name="uml_class_diagram_for_ndg_secu_71"> 
    65 <area shape="rect" href="ndg.security.common.X509.X509Stack&#45;class.html" title="Wrapper for M2Crypto X509_Stack" alt="" coords="15,11,67,27"/> 
     64<center>  <map id="uml_class_diagram_for_ndg_secu_80" name="uml_class_diagram_for_ndg_secu_80"> 
     65<area shape="rect" href="ndg.security.common.X509.X509Stack&#45;class.html#__init__" title="Initialise from an M2Crypto stack object" alt="" coords="17,36,553,54"/> 
     66<area shape="rect" href="ndg.security.common.X509.X509Stack&#45;class.html#__len__" title="Returns: &#160;length of stack" alt="" coords="17,54,553,73"/> 
     67<area shape="rect" href="ndg.security.common.X509.X509Stack&#45;class.html#__getitem__" title="Index stack as an array" alt="" coords="17,73,553,92"/> 
     68<area shape="rect" href="ndg.security.common.X509.X509Stack&#45;class.html#__iter__" title="Returns: &#160;stack iterator" alt="" coords="17,92,553,110"/> 
     69<area shape="rect" href="ndg.security.common.X509.X509Stack&#45;class.html#push" title="Push an X509 certificate onto the stack." alt="" coords="17,110,553,129"/> 
     70<area shape="rect" href="ndg.security.common.X509.X509Stack&#45;class.html#pop" title="Pop a certificate from the stack." alt="" coords="17,129,553,148"/> 
     71<area shape="rect" href="ndg.security.common.X509.X509Stack&#45;class.html#asDER" title="Return the stack as a DER encoded string" alt="" coords="17,148,553,166"/> 
     72<area shape="rect" href="ndg.security.common.X509.X509Stack&#45;class.html#verifyCertChain" title="Treat stack as a list of certificates in a chain of trust." alt="" coords="17,166,553,185"/> 
     73<area shape="rect" href="ndg.security.common.X509.X509Stack&#45;class.html" title="Wrapper for M2Crypto X509_Stack" alt="" coords="16,10,555,186"/> 
    6674</map> 
    67   <img src="uml_class_diagram_for_ndg_secu_71.gif" alt='' usemap="#uml_class_diagram_for_ndg_secu_71" ismap="ismap" class="graph-without-title" /> 
    68 </center></center> 
     75  <img src="uml_class_diagram_for_ndg_secu_80.gif" alt='' usemap="#uml_class_diagram_for_ndg_secu_80" ismap="ismap" class="graph-without-title" /> 
     76</center> 
     77</center> 
    6978<hr /> 
    70 Wrapper for M2Crypto X509_Stack<br /><br /> 
     79<p>Wrapper for M2Crypto X509_Stack</p> 
    7180 
    7281<!-- ==================== INSTANCE METHODS ==================== --> 
     
    219228          <td><span class="summary-sig"><a href="ndg.security.common.X509.X509Stack-class.html#verifyCertChain" class="summary-sig-name">verifyCertChain</a>(<span class="summary-sig-arg">self</span>, 
    220229        <span class="summary-sig-arg">x509Cert2Verify</span>=<span class="summary-sig-default">None</span>, 
    221         <span class="summary-sig-arg">caX509Stack</span>=<span class="summary-sig-default"><code class="variable-group">[</code><code class="variable-group">]</code></span>, 
     230        <span class="summary-sig-arg">caX509Stack</span>=<span class="summary-sig-default">[]</span>, 
    222231        <span class="summary-sig-arg">rejectSelfSignedCert</span>=<span class="summary-sig-default">True</span>)</span><br /> 
    223232      Treat stack as a list of certificates in a chain of trust.</td> 
     
    304313    ><span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X509Stack.__init__">source&nbsp;code</a></span>&nbsp; 
    305314    </td> 
    306   </table> 
    307    
    308   Initialise from an M2Crypto stack object 
     315  </tr></table> 
     316   
     317  <p>Initialise from an M2Crypto stack object</p> 
    309318  <dl class="fields"> 
    310319    <dt>Parameters:</dt> 
     
    313322    </ul></dd> 
    314323    <dt>Overrides: 
    315       object.__init__ 
     324        object.__init__ 
    316325    </dt> 
    317326  </dl> 
     
    331340    ><span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X509Stack.__len__">source&nbsp;code</a></span>&nbsp; 
    332341    </td> 
    333   </table> 
     342  </tr></table> 
    334343   
    335344   
     
    354363    ><span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X509Stack.__getitem__">source&nbsp;code</a></span>&nbsp; 
    355364    </td> 
    356   </table> 
    357    
    358   Index stack as an array 
     365  </tr></table> 
     366   
     367  <p>Index stack as an array</p> 
    359368  <dl class="fields"> 
    360369    <dt>Parameters:</dt> 
     
    379388    ><span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X509Stack.__iter__">source&nbsp;code</a></span>&nbsp; 
    380389    </td> 
    381   </table> 
     390  </tr></table> 
    382391   
    383392   
     
    401410    ><span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X509Stack.push">source&nbsp;code</a></span>&nbsp; 
    402411    </td> 
    403   </table> 
    404    
    405   Push an X509 certificate onto the stack. 
     412  </tr></table> 
     413   
     414  <p>Push an X509 certificate onto the stack.</p> 
    406415  <dl class="fields"> 
    407416    <dt>Parameters:</dt> 
     
    427436    ><span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X509Stack.pop">source&nbsp;code</a></span>&nbsp; 
    428437    </td> 
    429   </table> 
    430    
    431   Pop a certificate from the stack. 
     438  </tr></table> 
     439   
     440  <p>Pop a certificate from the stack.</p> 
    432441  <dl class="fields"> 
    433442    <dt>Returns: ndg.security.common.X509.X509Cert</dt> 
    434         <dd>X509 object that was popped, or None if there is nothing to  
    435           pop.</dd> 
     443        <dd>X509 object that was popped, or None if there is nothing to pop.</dd> 
    436444  </dl> 
    437445</td></tr></table> 
     
    449457    ><span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X509Stack.asDER">source&nbsp;code</a></span>&nbsp; 
    450458    </td> 
    451   </table> 
    452    
    453   Return the stack as a DER encoded string 
     459  </tr></table> 
     460   
     461  <p>Return the stack as a DER encoded string</p> 
    454462  <dl class="fields"> 
    455463    <dt>Returns: string</dt> 
     
    467475  <h3 class="epydoc"><span class="sig"><span class="sig-name">verifyCertChain</span>(<span class="sig-arg">self</span>, 
    468476        <span class="sig-arg">x509Cert2Verify</span>=<span class="sig-default">None</span>, 
    469         <span class="sig-arg">caX509Stack</span>=<span class="sig-default"><code class="variable-group">[</code><code class="variable-group">]</code></span>, 
     477        <span class="sig-arg">caX509Stack</span>=<span class="sig-default">[]</span>, 
    470478        <span class="sig-arg">rejectSelfSignedCert</span>=<span class="sig-default">True</span>)</span> 
    471479  </h3> 
     
    473481    ><span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X509Stack.verifyCertChain">source&nbsp;code</a></span>&nbsp; 
    474482    </td> 
    475   </table> 
    476    
    477   Treat stack as a list of certificates in a chain of trust.  Validate  
    478   the signatures through to a single root issuer. 
     483  </tr></table> 
     484   
     485  <p>Treat stack as a list of certificates in a chain of trust.  Validate  
     486  the signatures through to a single root issuer.</p> 
    479487  <dl class="fields"> 
    480488    <dt>Parameters:</dt> 
    481489    <dd><ul class="nomargin-top"> 
    482         <li><strong class="pname"><code>x509Cert2Verify</code></strong> (X509Cert) - X.509 certificate to be verified default is last in the  
    483           stack</li> 
     490        <li><strong class="pname"><code>x509Cert2Verify</code></strong> (X509Cert) - X.509 certificate to be verified default is last in the stack</li> 
    484491        <li><strong class="pname"><code>caX509Stack</code></strong> (X509Stack) - X.509 stack containing CA certificates that are trusted.</li> 
    485         <li><strong class="pname"><code>rejectSelfSignedCert</code></strong> (bool) - Set to True (default) to raise an SelfSignedCert exception if  
    486           a certificate in self's stack is self-signed.</li> 
     492        <li><strong class="pname"><code>rejectSelfSignedCert</code></strong> (bool) - Set to True (default) to raise an SelfSignedCert exception if a  
     493          certificate in self's stack is self-signed.</li> 
    487494    </ul></dd> 
    488495  </dl> 
     
    522529    <td align="left" class="footer"> 
    523530    <a href="epydoc-log.html">Generated by Epydoc 
    524     3.0beta1 on Mon Dec 17 09:22:45 2007</a> 
     531    3.0.1 on Thu Sep  4 09:37:45 2008</a> 
    525532    </td> 
    526533    <td align="right" class="footer"> 
    527       <a href="http://epydoc.sourceforge.net">http://epydoc.sourceforge.net</a> 
     534      <a target="mainFrame" href="http://epydoc.sourceforge.net" 
     535        >http://epydoc.sourceforge.net</a> 
    528536    </td> 
    529537  </tr> 
     
    536544  // visible); but by default, we want to hide them.  So hide 
    537545  // them unless we have a cookie that says to show them. 
    538   checkCookie() 
     546  checkCookie(); 
    539547  // --> 
    540548</script> 
    541    
    542549</body> 
    543550</html> 
Note: See TracChangeset for help on using the changeset viewer.