source: TI12-security/trunk/documentation/epydoc/ndg.security.common.X509-module.html @ 4245

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/documentation/epydoc/ndg.security.common.X509-module.html@4245
Revision 4245, 13.9 KB checked in by pjkersha, 11 years ago (diff)

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.
Line 
1<?xml version="1.0" encoding="ascii"?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3          "DTD/xhtml1-transitional.dtd">
4<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5<head>
6  <title>ndg.security.common.X509</title>
7  <link rel="stylesheet" href="epydoc.css" type="text/css" />
8  <script type="text/javascript" src="epydoc.js"></script>
9</head>
10
11<body bgcolor="white" text="black" link="blue" vlink="#204080"
12      alink="#204080">
13<!-- ==================== NAVIGATION BAR ==================== -->
14<table class="navbar" border="0" width="100%" cellpadding="0"
15       bgcolor="#a0c0ff" cellspacing="0">
16  <tr valign="middle">
17  <!-- Home link -->
18      <th>&nbsp;&nbsp;&nbsp;<a
19        href="ndg-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>
20
21  <!-- Tree link -->
22      <th>&nbsp;&nbsp;&nbsp;<a
23        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
24
25  <!-- Index link -->
26      <th>&nbsp;&nbsp;&nbsp;<a
27        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
28
29  <!-- Help link -->
30      <th>&nbsp;&nbsp;&nbsp;<a
31        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
32
33  <!-- Project homepage -->
34      <th class="navbar" align="right" width="100%">
35        <table border="0" cellpadding="0" cellspacing="0">
36          <tr><th class="navbar" align="center"
37            >NDG Security</th>
38          </tr></table></th>
39  </tr>
40</table>
41<table width="100%" cellpadding="0" cellspacing="0">
42  <tr valign="top">
43    <td width="100%">
44      <span class="breadcrumbs">
45        <a href="ndg-module.html">Package&nbsp;ndg</a> ::
46        <a href="ndg.security-module.html">Package&nbsp;security</a> ::
47        <a href="ndg.security.common-module.html">Package&nbsp;common</a> ::
48        Module&nbsp;X509
49      </span>
50    </td>
51    <td>
52      <table cellpadding="0" cellspacing="0">
53        <!-- hide/show private -->
54        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
55    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
56      </table>
57    </td>
58  </tr>
59</table>
60<!-- ==================== MODULE DESCRIPTION ==================== -->
61<h1 class="epydoc">Module X509</h1><p class="nomargin-top"><span class="codelink"><a href="ndg.security.common.X509-pysrc.html">source&nbsp;code</a></span></p>
62<p>X.509 certificate handling class encapsulates M2Crypto.X509</p>
63  <p>NERC Data Grid Project</p>
64
65<hr />
66<div class="fields">      <p><strong>Date:</strong>
67        05/04/05
68      </p>
69      <p><strong>Author:</strong>
70        P J Kershaw
71      </p>
72      <p><strong>Contact:</strong>
73        P.J.Kershaw@rl.ac.uk
74      </p>
75      <p><strong>Copyright:</strong>
76        (C) 2007 STFC &amp; NERC
77      </p>
78      <p><strong>License:</strong>
79        This software may be distributed under the terms of the Q Public
80        License, version 1.0 or later.
81      </p>
82</div><!-- ==================== CLASSES ==================== -->
83<a name="section-Classes"></a>
84<table class="summary" border="1" cellpadding="3"
85       cellspacing="0" width="100%" bgcolor="white">
86<tr bgcolor="#70b0f0" class="table-header">
87  <td colspan="2" class="table-header">
88    <table border="0" cellpadding="0" cellspacing="0" width="100%">
89      <tr valign="top">
90        <td align="left"><span class="table-header">Classes</span></td>
91        <td align="right" valign="top"
92         ><span class="options">[<a href="#section-Classes"
93         class="privatelink" onclick="toggle_private();"
94         >hide private</a>]</span></td>
95      </tr>
96    </table>
97  </td>
98</tr>
99<tr>
100    <td width="15%" align="right" valign="top" class="summary">
101      <span class="summary-type">&nbsp;</span>
102    </td><td class="summary">
103        <a href="ndg.security.common.X509.X509CertError-class.html" class="summary-name">X509CertError</a><br />
104      Exception handling for NDG X.509 Certificate handling class.
105    </td>
106  </tr>
107<tr>
108    <td width="15%" align="right" valign="top" class="summary">
109      <span class="summary-type">&nbsp;</span>
110    </td><td class="summary">
111        <a href="ndg.security.common.X509.X509CertInvalidNotBeforeTime-class.html" class="summary-name">X509CertInvalidNotBeforeTime</a><br />
112      Call from X509Cert.isValidTime if certificates not before time is
113      BEFORE the current system time
114    </td>
115  </tr>
116<tr>
117    <td width="15%" align="right" valign="top" class="summary">
118      <span class="summary-type">&nbsp;</span>
119    </td><td class="summary">
120        <a href="ndg.security.common.X509.X509CertExpired-class.html" class="summary-name">X509CertExpired</a><br />
121      Call from X509Cert.isValidTime if certificate has expired
122    </td>
123  </tr>
124<tr>
125    <td width="15%" align="right" valign="top" class="summary">
126      <span class="summary-type">&nbsp;</span>
127    </td><td class="summary">
128        <a href="ndg.security.common.X509.X509Cert-class.html" class="summary-name">X509Cert</a><br />
129      NDG X509 Certificate Handling
130    </td>
131  </tr>
132<tr>
133    <td width="15%" align="right" valign="top" class="summary">
134      <span class="summary-type">&nbsp;</span>
135    </td><td class="summary">
136        <a href="ndg.security.common.X509.X509StackError-class.html" class="summary-name">X509StackError</a><br />
137      Error from X509Stack type
138    </td>
139  </tr>
140<tr>
141    <td width="15%" align="right" valign="top" class="summary">
142      <span class="summary-type">&nbsp;</span>
143    </td><td class="summary">
144        <a href="ndg.security.common.X509.CertIssuerNotFound-class.html" class="summary-name">CertIssuerNotFound</a><br />
145      Raise from verifyCertChain if no certificate can be found to verify
146      the input
147    </td>
148  </tr>
149<tr>
150    <td width="15%" align="right" valign="top" class="summary">
151      <span class="summary-type">&nbsp;</span>
152    </td><td class="summary">
153        <a href="ndg.security.common.X509.SelfSignedCert-class.html" class="summary-name">SelfSignedCert</a><br />
154      Raise from verifyCertChain if cert.
155    </td>
156  </tr>
157<tr>
158    <td width="15%" align="right" valign="top" class="summary">
159      <span class="summary-type">&nbsp;</span>
160    </td><td class="summary">
161        <a href="ndg.security.common.X509.X509Stack-class.html" class="summary-name">X509Stack</a><br />
162      Wrapper for M2Crypto X509_Stack
163    </td>
164  </tr>
165<tr>
166    <td width="15%" align="right" valign="top" class="summary">
167      <span class="summary-type">&nbsp;</span>
168    </td><td class="summary">
169        <a href="ndg.security.common.X509.X500DNError-class.html" class="summary-name">X500DNError</a><br />
170      Exception handling for NDG X.500 DN class.
171    </td>
172  </tr>
173<tr>
174    <td width="15%" align="right" valign="top" class="summary">
175      <span class="summary-type">&nbsp;</span>
176    </td><td class="summary">
177        <a href="ndg.security.common.X509.X500DN-class.html" class="summary-name">X500DN</a><br />
178      NDG X500 Distinguished name
179    </td>
180  </tr>
181</table>
182<!-- ==================== FUNCTIONS ==================== -->
183<a name="section-Functions"></a>
184<table class="summary" border="1" cellpadding="3"
185       cellspacing="0" width="100%" bgcolor="white">
186<tr bgcolor="#70b0f0" class="table-header">
187  <td colspan="2" class="table-header">
188    <table border="0" cellpadding="0" cellspacing="0" width="100%">
189      <tr valign="top">
190        <td align="left"><span class="table-header">Functions</span></td>
191        <td align="right" valign="top"
192         ><span class="options">[<a href="#section-Functions"
193         class="privatelink" onclick="toggle_private();"
194         >hide private</a>]</span></td>
195      </tr>
196    </table>
197  </td>
198</tr>
199<tr>
200    <td width="15%" align="right" valign="top" class="summary">
201      <span class="summary-type">&nbsp;</span>
202    </td><td class="summary">
203      <table width="100%" cellpadding="0" cellspacing="0" border="0">
204        <tr>
205          <td><span class="summary-sig"><a name="X509CertRead"></a><span class="summary-sig-name">X509CertRead</span>(<span class="summary-sig-arg">filePath</span>)</span><br />
206      Create a new X509 certificate read in from a file</td>
207          <td align="right" valign="top">
208            <span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X509CertRead">source&nbsp;code</a></span>
209           
210          </td>
211        </tr>
212      </table>
213     
214    </td>
215  </tr>
216<tr>
217    <td width="15%" align="right" valign="top" class="summary">
218      <span class="summary-type">&nbsp;</span>
219    </td><td class="summary">
220      <table width="100%" cellpadding="0" cellspacing="0" border="0">
221        <tr>
222          <td><span class="summary-sig"><a name="X509CertParse"></a><span class="summary-sig-name">X509CertParse</span>(<span class="summary-sig-arg">x509CertTxt</span>)</span><br />
223      Create a new X509 certificate from string of file content</td>
224          <td align="right" valign="top">
225            <span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X509CertParse">source&nbsp;code</a></span>
226           
227          </td>
228        </tr>
229      </table>
230     
231    </td>
232  </tr>
233<tr>
234    <td width="15%" align="right" valign="top" class="summary">
235      <span class="summary-type">X509Stack</span>
236    </td><td class="summary">
237      <table width="100%" cellpadding="0" cellspacing="0" border="0">
238        <tr>
239          <td><span class="summary-sig"><a href="ndg.security.common.X509-module.html#X509StackParseFromDER" class="summary-sig-name">X509StackParseFromDER</a>(<span class="summary-sig-arg">derString</span>)</span><br />
240      Make a new stack from a DER string</td>
241          <td align="right" valign="top">
242            <span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X509StackParseFromDER">source&nbsp;code</a></span>
243           
244          </td>
245        </tr>
246      </table>
247     
248    </td>
249  </tr>
250</table>
251<!-- ==================== VARIABLES ==================== -->
252<a name="section-Variables"></a>
253<table class="summary" border="1" cellpadding="3"
254       cellspacing="0" width="100%" bgcolor="white">
255<tr bgcolor="#70b0f0" class="table-header">
256  <td colspan="2" class="table-header">
257    <table border="0" cellpadding="0" cellspacing="0" width="100%">
258      <tr valign="top">
259        <td align="left"><span class="table-header">Variables</span></td>
260        <td align="right" valign="top"
261         ><span class="options">[<a href="#section-Variables"
262         class="privatelink" onclick="toggle_private();"
263         >hide private</a>]</span></td>
264      </tr>
265    </table>
266  </td>
267</tr>
268<tr>
269    <td width="15%" align="right" valign="top" class="summary">
270      <span class="summary-type">&nbsp;</span>
271    </td><td class="summary">
272        <a name="__revision__"></a><span class="summary-name">__revision__</span> = <code title="'$Id: X509.py 4156 2008-09-01 11:16:43Z cbyrom $'">'$Id: X509.py 4156 2008-09-01 11:16:43Z cbyrom $'</code>
273    </td>
274  </tr>
275</table>
276<!-- ==================== FUNCTION DETAILS ==================== -->
277<a name="section-FunctionDetails"></a>
278<table class="details" border="1" cellpadding="3"
279       cellspacing="0" width="100%" bgcolor="white">
280<tr bgcolor="#70b0f0" class="table-header">
281  <td colspan="2" class="table-header">
282    <table border="0" cellpadding="0" cellspacing="0" width="100%">
283      <tr valign="top">
284        <td align="left"><span class="table-header">Function Details</span></td>
285        <td align="right" valign="top"
286         ><span class="options">[<a href="#section-FunctionDetails"
287         class="privatelink" onclick="toggle_private();"
288         >hide private</a>]</span></td>
289      </tr>
290    </table>
291  </td>
292</tr>
293</table>
294<a name="X509StackParseFromDER"></a>
295<div>
296<table class="details" border="1" cellpadding="3"
297       cellspacing="0" width="100%" bgcolor="white">
298<tr><td>
299  <table width="100%" cellpadding="0" cellspacing="0" border="0">
300  <tr valign="top"><td>
301  <h3 class="epydoc"><span class="sig"><span class="sig-name">X509StackParseFromDER</span>(<span class="sig-arg">derString</span>)</span>
302  </h3>
303  </td><td align="right" valign="top"
304    ><span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X509StackParseFromDER">source&nbsp;code</a></span>&nbsp;
305    </td>
306  </tr></table>
307 
308  <p>Make a new stack from a DER string</p>
309  <dl class="fields">
310    <dt>Parameters:</dt>
311    <dd><ul class="nomargin-top">
312        <li><strong class="pname"><code>derString</code></strong> (string) - DER formatted X.509 stack data</li>
313    </ul></dd>
314    <dt>Returns: X509Stack</dt>
315        <dd>new stack object</dd>
316  </dl>
317</td></tr></table>
318</div>
319<br />
320<!-- ==================== NAVIGATION BAR ==================== -->
321<table class="navbar" border="0" width="100%" cellpadding="0"
322       bgcolor="#a0c0ff" cellspacing="0">
323  <tr valign="middle">
324  <!-- Home link -->
325      <th>&nbsp;&nbsp;&nbsp;<a
326        href="ndg-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>
327
328  <!-- Tree link -->
329      <th>&nbsp;&nbsp;&nbsp;<a
330        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
331
332  <!-- Index link -->
333      <th>&nbsp;&nbsp;&nbsp;<a
334        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
335
336  <!-- Help link -->
337      <th>&nbsp;&nbsp;&nbsp;<a
338        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
339
340  <!-- Project homepage -->
341      <th class="navbar" align="right" width="100%">
342        <table border="0" cellpadding="0" cellspacing="0">
343          <tr><th class="navbar" align="center"
344            >NDG Security</th>
345          </tr></table></th>
346  </tr>
347</table>
348<table border="0" cellpadding="0" cellspacing="0" width="100%%">
349  <tr>
350    <td align="left" class="footer">
351    <a href="epydoc-log.html">Generated by Epydoc
352    3.0.1 on Thu Sep  4 09:37:40 2008</a>
353    </td>
354    <td align="right" class="footer">
355      <a target="mainFrame" href="http://epydoc.sourceforge.net"
356        >http://epydoc.sourceforge.net</a>
357    </td>
358  </tr>
359</table>
360
361<script type="text/javascript">
362  <!--
363  // Private objects are initially displayed (because if
364  // javascript is turned off then we want them to be
365  // visible); but by default, we want to hide them.  So hide
366  // them unless we have a cookie that says to show them.
367  checkCookie();
368  // -->
369</script>
370</body>
371</html>
Note: See TracBrowser for help on using the repository browser.