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

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/documentation/epydoc/ndg.security.common.X509.X509Cert-class.html@4245
Revision 4245, 37.2 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.X509Cert</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        <a href="ndg.security.common.X509-module.html">Module&nbsp;X509</a> ::
49        Class&nbsp;X509Cert
50      </span>
51    </td>
52    <td>
53      <table cellpadding="0" cellspacing="0">
54        <!-- hide/show private -->
55        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
56    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
57      </table>
58    </td>
59  </tr>
60</table>
61<!-- ==================== CLASS DESCRIPTION ==================== -->
62<h1 class="epydoc">Class X509Cert</h1><p class="nomargin-top"><span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X509Cert">source&nbsp;code</a></span></p>
63<center>
64<center>  <map id="uml_class_diagram_for_ndg_secu_76" name="uml_class_diagram_for_ndg_secu_76">
65<area shape="rect" href="ndg.security.common.X509.X509Cert&#45;class.html#m2CryptoX509" title="ndg.security.common.X509.X509Cert.m2CryptoX509" alt="" coords="17,28,327,47"/>
66<area shape="rect" href="ndg.security.common.X509.X509Cert&#45;class.html#dn" title="ndg.security.common.X509.X509Cert.dn" alt="" coords="17,47,327,65"/>
67<area shape="rect" href="ndg.security.common.X509.X509Cert&#45;class.html#version" title="ndg.security.common.X509.X509Cert.version" alt="" coords="17,65,327,84"/>
68<area shape="rect" href="ndg.security.common.X509.X509Cert&#45;class.html#serialNumber" title="ndg.security.common.X509.X509Cert.serialNumber" alt="" coords="17,84,327,103"/>
69<area shape="rect" href="ndg.security.common.X509.X509Cert&#45;class.html#notBefore" title="ndg.security.common.X509.X509Cert.notBefore" alt="" coords="17,103,327,121"/>
70<area shape="rect" href="ndg.security.common.X509.X509Cert&#45;class.html#notAfter" title="ndg.security.common.X509.X509Cert.notAfter" alt="" coords="17,121,327,140"/>
71<area shape="rect" href="ndg.security.common.X509.X509Cert&#45;class.html#pubKey" title="ndg.security.common.X509.X509Cert.pubKey" alt="" coords="17,140,327,159"/>
72<area shape="rect" href="ndg.security.common.X509.X509Cert&#45;class.html#issuer" title="ndg.security.common.X509.X509Cert.issuer" alt="" coords="17,159,327,177"/>
73<area shape="rect" href="ndg.security.common.X509.X509Cert&#45;class.html#subject" title="ndg.security.common.X509.X509Cert.subject" alt="" coords="17,177,327,196"/>
74<area shape="rect" href="ndg.security.common.X509.X509Cert&#45;class.html#__init__" title="x.__init__(...) initializes x; see x.__class__.__doc__ for signature" alt="" coords="17,199,327,217"/>
75<area shape="rect" href="ndg.security.common.X509.X509Cert&#45;class.html#read" title="Read a certificate from file" alt="" coords="17,217,327,236"/>
76<area shape="rect" href="ndg.security.common.X509.X509Cert&#45;class.html#parse" title="Read a certificate input as a string" alt="" coords="17,236,327,255"/>
77<area shape="rect" href="ndg.security.common.X509.X509Cert&#45;class.html#toString" title="Return certificate file content as a PEM format string" alt="" coords="17,255,327,273"/>
78<area shape="rect" href="ndg.security.common.X509.X509Cert&#45;class.html#asPEM" title="Return certificate file content as a PEM format string" alt="" coords="17,273,327,292"/>
79<area shape="rect" href="ndg.security.common.X509.X509Cert&#45;class.html#asDER" title="Return certificate file content in DER format" alt="" coords="17,292,327,311"/>
80<area shape="rect" href="ndg.security.common.X509.X509Cert&#45;class.html#isValidTime" title="Check Certificate for expiry" alt="" coords="17,311,327,329"/>
81<area shape="rect" href="ndg.security.common.X509.X509Cert&#45;class.html#verify" title="Verify a certificate against the public key of the issuer" alt="" coords="17,329,327,348"/>
82<area shape="rect" href="ndg.security.common.X509.X509Cert&#45;class.html" title="NDG X509 Certificate Handling" alt="" coords="16,11,328,349"/>
83</map>
84  <img src="uml_class_diagram_for_ndg_secu_76.gif" alt='' usemap="#uml_class_diagram_for_ndg_secu_76" ismap="ismap" class="graph-without-title" />
85</center>
86</center>
87<hr />
88<p>NDG X509 Certificate Handling</p>
89
90<!-- ==================== INSTANCE METHODS ==================== -->
91<a name="section-InstanceMethods"></a>
92<table class="summary" border="1" cellpadding="3"
93       cellspacing="0" width="100%" bgcolor="white">
94<tr bgcolor="#70b0f0" class="table-header">
95  <td colspan="2" class="table-header">
96    <table border="0" cellpadding="0" cellspacing="0" width="100%">
97      <tr valign="top">
98        <td align="left"><span class="table-header">Instance Methods</span></td>
99        <td align="right" valign="top"
100         ><span class="options">[<a href="#section-InstanceMethods"
101         class="privatelink" onclick="toggle_private();"
102         >hide private</a>]</span></td>
103      </tr>
104    </table>
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      <table width="100%" cellpadding="0" cellspacing="0" border="0">
112        <tr>
113          <td><span class="summary-sig"><a href="ndg.security.common.X509.X509Cert-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>,
114        <span class="summary-sig-arg">filePath</span>=<span class="summary-sig-default">None</span>,
115        <span class="summary-sig-arg">m2CryptoX509</span>=<span class="summary-sig-default">None</span>)</span><br />
116      x.__init__(...) initializes x; see x.__class__.__doc__ for signature</td>
117          <td align="right" valign="top">
118            <span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X509Cert.__init__">source&nbsp;code</a></span>
119           
120          </td>
121        </tr>
122      </table>
123     
124    </td>
125  </tr>
126<tr>
127    <td width="15%" align="right" valign="top" class="summary">
128      <span class="summary-type">&nbsp;</span>
129    </td><td class="summary">
130      <table width="100%" cellpadding="0" cellspacing="0" border="0">
131        <tr>
132          <td><span class="summary-sig"><a name="read"></a><span class="summary-sig-name">read</span>(<span class="summary-sig-arg">self</span>,
133        <span class="summary-sig-arg">filePath</span>=<span class="summary-sig-default">None</span>)</span><br />
134      Read a certificate from file</td>
135          <td align="right" valign="top">
136            <span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X509Cert.read">source&nbsp;code</a></span>
137           
138          </td>
139        </tr>
140      </table>
141     
142    </td>
143  </tr>
144<tr>
145    <td width="15%" align="right" valign="top" class="summary">
146      <span class="summary-type">&nbsp;</span>
147    </td><td class="summary">
148      <table width="100%" cellpadding="0" cellspacing="0" border="0">
149        <tr>
150          <td><span class="summary-sig"><a name="parse"></a><span class="summary-sig-name">parse</span>(<span class="summary-sig-arg">self</span>,
151        <span class="summary-sig-arg">certTxt</span>)</span><br />
152      Read a certificate input as a string</td>
153          <td align="right" valign="top">
154            <span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X509Cert.parse">source&nbsp;code</a></span>
155           
156          </td>
157        </tr>
158      </table>
159     
160    </td>
161  </tr>
162<tr class="private">
163    <td width="15%" align="right" valign="top" class="summary">
164      <span class="summary-type">&nbsp;</span>
165    </td><td class="summary">
166      <table width="100%" cellpadding="0" cellspacing="0" border="0">
167        <tr>
168          <td><span class="summary-sig"><a href="ndg.security.common.X509.X509Cert-class.html#__setM2CryptoX509" class="summary-sig-name" onclick="show_private();">__setM2CryptoX509</a>(<span class="summary-sig-arg">self</span>,
169        <span class="summary-sig-arg">m2CryptoX509</span>=<span class="summary-sig-default">None</span>)</span><br />
170      Private method allows class members to be updated from the current
171      M2Crypto object.</td>
172          <td align="right" valign="top">
173            <span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X509Cert.__setM2CryptoX509">source&nbsp;code</a></span>
174           
175          </td>
176        </tr>
177      </table>
178     
179    </td>
180  </tr>
181<tr class="private">
182    <td width="15%" align="right" valign="top" class="summary">
183      <span class="summary-type">&nbsp;</span>
184    </td><td class="summary">
185      <table width="100%" cellpadding="0" cellspacing="0" border="0">
186        <tr>
187          <td><span class="summary-sig"><a name="__getM2CryptoX509"></a><span class="summary-sig-name">__getM2CryptoX509</span>(<span class="summary-sig-arg">self</span>,
188        <span class="summary-sig-arg">m2CryptoX509</span>=<span class="summary-sig-default">None</span>)</span><br />
189      Return M2Crypto X.509 cert object</td>
190          <td align="right" valign="top">
191            <span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X509Cert.__getM2CryptoX509">source&nbsp;code</a></span>
192           
193          </td>
194        </tr>
195      </table>
196     
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="toString"></a><span class="summary-sig-name">toString</span>(<span class="summary-sig-arg">self</span>,
206        <span class="summary-sig-arg">**kw</span>)</span><br />
207      Return certificate file content as a PEM format string</td>
208          <td align="right" valign="top">
209            <span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X509Cert.toString">source&nbsp;code</a></span>
210           
211          </td>
212        </tr>
213      </table>
214     
215    </td>
216  </tr>
217<tr>
218    <td width="15%" align="right" valign="top" class="summary">
219      <span class="summary-type">&nbsp;</span>
220    </td><td class="summary">
221      <table width="100%" cellpadding="0" cellspacing="0" border="0">
222        <tr>
223          <td><span class="summary-sig"><a name="asPEM"></a><span class="summary-sig-name">asPEM</span>(<span class="summary-sig-arg">self</span>,
224        <span class="summary-sig-arg">filePath</span>=<span class="summary-sig-default">None</span>)</span><br />
225      Return certificate file content as a PEM format string</td>
226          <td align="right" valign="top">
227            <span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X509Cert.asPEM">source&nbsp;code</a></span>
228           
229          </td>
230        </tr>
231      </table>
232     
233    </td>
234  </tr>
235<tr>
236    <td width="15%" align="right" valign="top" class="summary">
237      <span class="summary-type">&nbsp;</span>
238    </td><td class="summary">
239      <table width="100%" cellpadding="0" cellspacing="0" border="0">
240        <tr>
241          <td><span class="summary-sig"><a name="asDER"></a><span class="summary-sig-name">asDER</span>(<span class="summary-sig-arg">self</span>)</span><br />
242      Return certificate file content in DER format</td>
243          <td align="right" valign="top">
244            <span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X509Cert.asDER">source&nbsp;code</a></span>
245           
246          </td>
247        </tr>
248      </table>
249     
250    </td>
251  </tr>
252<tr class="private">
253    <td width="15%" align="right" valign="top" class="summary">
254      <span class="summary-type">&nbsp;</span>
255    </td><td class="summary">
256      <table width="100%" cellpadding="0" cellspacing="0" border="0">
257        <tr>
258          <td><span class="summary-sig"><a name="__getDN"></a><span class="summary-sig-name">__getDN</span>(<span class="summary-sig-arg">self</span>)</span><br />
259      Get X500 Distinguished Name.</td>
260          <td align="right" valign="top">
261            <span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X509Cert.__getDN">source&nbsp;code</a></span>
262           
263          </td>
264        </tr>
265      </table>
266     
267    </td>
268  </tr>
269<tr class="private">
270    <td width="15%" align="right" valign="top" class="summary">
271      <span class="summary-type">&nbsp;</span>
272    </td><td class="summary">
273      <table width="100%" cellpadding="0" cellspacing="0" border="0">
274        <tr>
275          <td><span class="summary-sig"><a name="__getVersion"></a><span class="summary-sig-name">__getVersion</span>(<span class="summary-sig-arg">self</span>)</span><br />
276      Get X.509 Certificate version</td>
277          <td align="right" valign="top">
278            <span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X509Cert.__getVersion">source&nbsp;code</a></span>
279           
280          </td>
281        </tr>
282      </table>
283     
284    </td>
285  </tr>
286<tr class="private">
287    <td width="15%" align="right" valign="top" class="summary">
288      <span class="summary-type">&nbsp;</span>
289    </td><td class="summary">
290      <table width="100%" cellpadding="0" cellspacing="0" border="0">
291        <tr>
292          <td><span class="summary-sig"><a name="__getSerialNumber"></a><span class="summary-sig-name">__getSerialNumber</span>(<span class="summary-sig-arg">self</span>)</span><br />
293      Get Serial Number</td>
294          <td align="right" valign="top">
295            <span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X509Cert.__getSerialNumber">source&nbsp;code</a></span>
296           
297          </td>
298        </tr>
299      </table>
300     
301    </td>
302  </tr>
303<tr class="private">
304    <td width="15%" align="right" valign="top" class="summary">
305      <span class="summary-type">&nbsp;</span>
306    </td><td class="summary">
307      <table width="100%" cellpadding="0" cellspacing="0" border="0">
308        <tr>
309          <td><span class="summary-sig"><a name="__getNotBefore"></a><span class="summary-sig-name">__getNotBefore</span>(<span class="summary-sig-arg">self</span>)</span><br />
310      Get not before validity time as datetime type</td>
311          <td align="right" valign="top">
312            <span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X509Cert.__getNotBefore">source&nbsp;code</a></span>
313           
314          </td>
315        </tr>
316      </table>
317     
318    </td>
319  </tr>
320<tr class="private">
321    <td width="15%" align="right" valign="top" class="summary">
322      <span class="summary-type">&nbsp;</span>
323    </td><td class="summary">
324      <table width="100%" cellpadding="0" cellspacing="0" border="0">
325        <tr>
326          <td><span class="summary-sig"><a name="__getNotAfter"></a><span class="summary-sig-name">__getNotAfter</span>(<span class="summary-sig-arg">self</span>)</span><br />
327      Get not after validity time as datetime type</td>
328          <td align="right" valign="top">
329            <span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X509Cert.__getNotAfter">source&nbsp;code</a></span>
330           
331          </td>
332        </tr>
333      </table>
334     
335    </td>
336  </tr>
337<tr class="private">
338    <td width="15%" align="right" valign="top" class="summary">
339      <span class="summary-type">M2Crypto.RSA.RSA_pub</span>
340    </td><td class="summary">
341      <table width="100%" cellpadding="0" cellspacing="0" border="0">
342        <tr>
343          <td><span class="summary-sig"><a href="ndg.security.common.X509.X509Cert-class.html#__getPubKey" class="summary-sig-name" onclick="show_private();">__getPubKey</a>(<span class="summary-sig-arg">self</span>)</span><br />
344      Get public key</td>
345          <td align="right" valign="top">
346            <span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X509Cert.__getPubKey">source&nbsp;code</a></span>
347           
348          </td>
349        </tr>
350      </table>
351     
352    </td>
353  </tr>
354<tr class="private">
355    <td width="15%" align="right" valign="top" class="summary">
356      <span class="summary-type">&nbsp;</span>
357    </td><td class="summary">
358      <table width="100%" cellpadding="0" cellspacing="0" border="0">
359        <tr>
360          <td><span class="summary-sig"><a name="__getIssuer"></a><span class="summary-sig-name">__getIssuer</span>(<span class="summary-sig-arg">self</span>)</span><br />
361      Get Certificate issuer</td>
362          <td align="right" valign="top">
363            <span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X509Cert.__getIssuer">source&nbsp;code</a></span>
364           
365          </td>
366        </tr>
367      </table>
368     
369    </td>
370  </tr>
371<tr class="private">
372    <td width="15%" align="right" valign="top" class="summary">
373      <span class="summary-type">&nbsp;</span>
374    </td><td class="summary">
375      <table width="100%" cellpadding="0" cellspacing="0" border="0">
376        <tr>
377          <td><span class="summary-sig"><a name="__getSubject"></a><span class="summary-sig-name">__getSubject</span>(<span class="summary-sig-arg">self</span>)</span><br />
378      Get Certificate subject</td>
379          <td align="right" valign="top">
380            <span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X509Cert.__getSubject">source&nbsp;code</a></span>
381           
382          </td>
383        </tr>
384      </table>
385     
386    </td>
387  </tr>
388<tr>
389    <td width="15%" align="right" valign="top" class="summary">
390      <span class="summary-type">&nbsp;</span>
391    </td><td class="summary">
392      <table width="100%" cellpadding="0" cellspacing="0" border="0">
393        <tr>
394          <td><span class="summary-sig"><a href="ndg.security.common.X509.X509Cert-class.html#isValidTime" class="summary-sig-name">isValidTime</a>(<span class="summary-sig-arg">self</span>,
395        <span class="summary-sig-arg">raiseExcep</span>=<span class="summary-sig-default">False</span>)</span><br />
396      Check Certificate for expiry</td>
397          <td align="right" valign="top">
398            <span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X509Cert.isValidTime">source&nbsp;code</a></span>
399           
400          </td>
401        </tr>
402      </table>
403     
404    </td>
405  </tr>
406<tr class="private">
407    <td width="15%" align="right" valign="top" class="summary">
408      <span class="summary-type">&nbsp;</span>
409    </td><td class="summary">
410      <table width="100%" cellpadding="0" cellspacing="0" border="0">
411        <tr>
412          <td><span class="summary-sig"><a name="__m2CryptoUTC2datetime"></a><span class="summary-sig-name">__m2CryptoUTC2datetime</span>(<span class="summary-sig-arg">self</span>,
413        <span class="summary-sig-arg">m2CryptoUTC</span>)</span><br />
414      Convert M2Crypto UTC time string as returned by get_not_before/
415      get_not_after methods into datetime type</td>
416          <td align="right" valign="top">
417            <span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X509Cert.__m2CryptoUTC2datetime">source&nbsp;code</a></span>
418           
419          </td>
420        </tr>
421      </table>
422     
423    </td>
424  </tr>
425<tr>
426    <td width="15%" align="right" valign="top" class="summary">
427      <span class="summary-type">bool</span>
428    </td><td class="summary">
429      <table width="100%" cellpadding="0" cellspacing="0" border="0">
430        <tr>
431          <td><span class="summary-sig"><a href="ndg.security.common.X509.X509Cert-class.html#verify" class="summary-sig-name">verify</a>(<span class="summary-sig-arg">self</span>,
432        <span class="summary-sig-arg">pubKey</span>,
433        <span class="summary-sig-arg">**kw</span>)</span><br />
434      Verify a certificate against the public key of the issuer</td>
435          <td align="right" valign="top">
436            <span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X509Cert.verify">source&nbsp;code</a></span>
437           
438          </td>
439        </tr>
440      </table>
441     
442    </td>
443  </tr>
444  <tr>
445    <td colspan="2" class="summary">
446    <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
447      <code>__delattr__</code>,
448      <code>__getattribute__</code>,
449      <code>__hash__</code>,
450      <code>__new__</code>,
451      <code>__reduce__</code>,
452      <code>__reduce_ex__</code>,
453      <code>__repr__</code>,
454      <code>__setattr__</code>,
455      <code>__str__</code>
456      </p>
457    </td>
458  </tr>
459</table>
460<!-- ==================== CLASS VARIABLES ==================== -->
461<a name="section-ClassVariables"></a>
462<table class="summary" border="1" cellpadding="3"
463       cellspacing="0" width="100%" bgcolor="white">
464<tr bgcolor="#70b0f0" class="table-header">
465  <td colspan="2" class="table-header">
466    <table border="0" cellpadding="0" cellspacing="0" width="100%">
467      <tr valign="top">
468        <td align="left"><span class="table-header">Class Variables</span></td>
469        <td align="right" valign="top"
470         ><span class="options">[<a href="#section-ClassVariables"
471         class="privatelink" onclick="toggle_private();"
472         >hide private</a>]</span></td>
473      </tr>
474    </table>
475  </td>
476</tr>
477<tr>
478    <td width="15%" align="right" valign="top" class="summary">
479      <span class="summary-type">&nbsp;</span>
480    </td><td class="summary">
481        <a href="ndg.security.common.X509.X509Cert-class.html#m2CryptoX509" class="summary-name">m2CryptoX509</a> = <code title="property(fset= __setM2CryptoX509, fget= __getM2CryptoX509, doc= &quot;M2Cry\
482pto.X509.X509 type&quot;)">property(fset= __setM2CryptoX509, fget= __getM2<code class="variable-ellipsis">...</code></code>
483    </td>
484  </tr>
485<tr>
486    <td width="15%" align="right" valign="top" class="summary">
487      <span class="summary-type">&nbsp;</span>
488    </td><td class="summary">
489        <a name="dn"></a><span class="summary-name">dn</span> = <code title="property(fget= __getDN, doc= &quot;X.509 Distinguished Name&quot;)">property(fget= __getDN, doc= &quot;X.509 Distinguished Name&quot;)</code>
490    </td>
491  </tr>
492<tr>
493    <td width="15%" align="right" valign="top" class="summary">
494      <span class="summary-type">&nbsp;</span>
495    </td><td class="summary">
496        <a href="ndg.security.common.X509.X509Cert-class.html#version" class="summary-name">version</a> = <code title="property(fget= __getVersion, doc= &quot;X.509 Certificate version&quot;)">property(fget= __getVersion, doc= &quot;X.509 Certificate<code class="variable-ellipsis">...</code></code>
497    </td>
498  </tr>
499<tr>
500    <td width="15%" align="right" valign="top" class="summary">
501      <span class="summary-type">&nbsp;</span>
502    </td><td class="summary">
503        <a href="ndg.security.common.X509.X509Cert-class.html#serialNumber" class="summary-name">serialNumber</a> = <code title="property(fget= __getSerialNumber, doc= &quot;X.509 Certificate Serial Numbe\
504r&quot;)">property(fget= __getSerialNumber, doc= &quot;X.509 C<code class="variable-ellipsis">...</code></code>
505    </td>
506  </tr>
507<tr>
508    <td width="15%" align="right" valign="top" class="summary">
509      <span class="summary-type">&nbsp;</span>
510    </td><td class="summary">
511        <a href="ndg.security.common.X509.X509Cert-class.html#notBefore" class="summary-name">notBefore</a> = <code title="property(fget= __getNotBefore, doc= &quot;Not before validity time as datet\
512ime type&quot;)">property(fget= __getNotBefore, doc= &quot;Not before va<code class="variable-ellipsis">...</code></code>
513    </td>
514  </tr>
515<tr>
516    <td width="15%" align="right" valign="top" class="summary">
517      <span class="summary-type">&nbsp;</span>
518    </td><td class="summary">
519        <a href="ndg.security.common.X509.X509Cert-class.html#notAfter" class="summary-name">notAfter</a> = <code title="property(fget= __getNotAfter, doc= &quot;Not after validity time as datetim\
520e type&quot;)">property(fget= __getNotAfter, doc= &quot;Not after valid<code class="variable-ellipsis">...</code></code>
521    </td>
522  </tr>
523<tr>
524    <td width="15%" align="right" valign="top" class="summary">
525      <span class="summary-type">&nbsp;</span>
526    </td><td class="summary">
527        <a name="pubKey"></a><span class="summary-name">pubKey</span> = <code title="property(fget= __getPubKey, doc= &quot;Public Key&quot;)">property(fget= __getPubKey, doc= &quot;Public Key&quot;)</code>
528    </td>
529  </tr>
530<tr>
531    <td width="15%" align="right" valign="top" class="summary">
532      <span class="summary-type">&nbsp;</span>
533    </td><td class="summary">
534        <a name="issuer"></a><span class="summary-name">issuer</span> = <code title="property(fget= __getIssuer, doc= &quot;Certificate Issuer&quot;)">property(fget= __getIssuer, doc= &quot;Certificate Issuer&quot;)</code>
535    </td>
536  </tr>
537<tr>
538    <td width="15%" align="right" valign="top" class="summary">
539      <span class="summary-type">&nbsp;</span>
540    </td><td class="summary">
541        <a href="ndg.security.common.X509.X509Cert-class.html#subject" class="summary-name">subject</a> = <code title="property(fget= __getSubject, doc= &quot;Certificate subject&quot;)">property(fget= __getSubject, doc= &quot;Certificate subje<code class="variable-ellipsis">...</code></code>
542    </td>
543  </tr>
544</table>
545<!-- ==================== PROPERTIES ==================== -->
546<a name="section-Properties"></a>
547<table class="summary" border="1" cellpadding="3"
548       cellspacing="0" width="100%" bgcolor="white">
549<tr bgcolor="#70b0f0" class="table-header">
550  <td colspan="2" class="table-header">
551    <table border="0" cellpadding="0" cellspacing="0" width="100%">
552      <tr valign="top">
553        <td align="left"><span class="table-header">Properties</span></td>
554        <td align="right" valign="top"
555         ><span class="options">[<a href="#section-Properties"
556         class="privatelink" onclick="toggle_private();"
557         >hide private</a>]</span></td>
558      </tr>
559    </table>
560  </td>
561</tr>
562  <tr>
563    <td colspan="2" class="summary">
564    <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
565      <code>__class__</code>
566      </p>
567    </td>
568  </tr>
569</table>
570<!-- ==================== METHOD DETAILS ==================== -->
571<a name="section-MethodDetails"></a>
572<table class="details" border="1" cellpadding="3"
573       cellspacing="0" width="100%" bgcolor="white">
574<tr bgcolor="#70b0f0" class="table-header">
575  <td colspan="2" class="table-header">
576    <table border="0" cellpadding="0" cellspacing="0" width="100%">
577      <tr valign="top">
578        <td align="left"><span class="table-header">Method Details</span></td>
579        <td align="right" valign="top"
580         ><span class="options">[<a href="#section-MethodDetails"
581         class="privatelink" onclick="toggle_private();"
582         >hide private</a>]</span></td>
583      </tr>
584    </table>
585  </td>
586</tr>
587</table>
588<a name="__init__"></a>
589<div>
590<table class="details" border="1" cellpadding="3"
591       cellspacing="0" width="100%" bgcolor="white">
592<tr><td>
593  <table width="100%" cellpadding="0" cellspacing="0" border="0">
594  <tr valign="top"><td>
595  <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>,
596        <span class="sig-arg">filePath</span>=<span class="sig-default">None</span>,
597        <span class="sig-arg">m2CryptoX509</span>=<span class="sig-default">None</span>)</span>
598    <br /><em class="fname">(Constructor)</em>
599  </h3>
600  </td><td align="right" valign="top"
601    ><span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X509Cert.__init__">source&nbsp;code</a></span>&nbsp;
602    </td>
603  </tr></table>
604 
605  <p>x.__init__(...) initializes x; see x.__class__.__doc__ for
606  signature</p>
607  <dl class="fields">
608    <dt>Overrides:
609        object.__init__
610        <dd><em class="note">(inherited documentation)</em></dd>
611    </dt>
612  </dl>
613</td></tr></table>
614</div>
615<a name="__setM2CryptoX509"></a>
616<div class="private">
617<table class="details" border="1" cellpadding="3"
618       cellspacing="0" width="100%" bgcolor="white">
619<tr><td>
620  <table width="100%" cellpadding="0" cellspacing="0" border="0">
621  <tr valign="top"><td>
622  <h3 class="epydoc"><span class="sig"><span class="sig-name">__setM2CryptoX509</span>(<span class="sig-arg">self</span>,
623        <span class="sig-arg">m2CryptoX509</span>=<span class="sig-default">None</span>)</span>
624  </h3>
625  </td><td align="right" valign="top"
626    ><span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X509Cert.__setM2CryptoX509">source&nbsp;code</a></span>&nbsp;
627    </td>
628  </tr></table>
629 
630  <p>Private method allows class members to be updated from the current
631  M2Crypto object.  __m2CryptoX509 must have been set.</p>
632  <dl class="fields">
633  </dl>
634</td></tr></table>
635</div>
636<a name="__getPubKey"></a>
637<div class="private">
638<table class="details" border="1" cellpadding="3"
639       cellspacing="0" width="100%" bgcolor="white">
640<tr><td>
641  <table width="100%" cellpadding="0" cellspacing="0" border="0">
642  <tr valign="top"><td>
643  <h3 class="epydoc"><span class="sig"><span class="sig-name">__getPubKey</span>(<span class="sig-arg">self</span>)</span>
644  </h3>
645  </td><td align="right" valign="top"
646    ><span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X509Cert.__getPubKey">source&nbsp;code</a></span>&nbsp;
647    </td>
648  </tr></table>
649 
650  <p>Get public key</p>
651  <dl class="fields">
652    <dt>Returns: M2Crypto.RSA.RSA_pub</dt>
653        <dd>RSA public key for certificate</dd>
654  </dl>
655</td></tr></table>
656</div>
657<a name="isValidTime"></a>
658<div>
659<table class="details" border="1" cellpadding="3"
660       cellspacing="0" width="100%" bgcolor="white">
661<tr><td>
662  <table width="100%" cellpadding="0" cellspacing="0" border="0">
663  <tr valign="top"><td>
664  <h3 class="epydoc"><span class="sig"><span class="sig-name">isValidTime</span>(<span class="sig-arg">self</span>,
665        <span class="sig-arg">raiseExcep</span>=<span class="sig-default">False</span>)</span>
666  </h3>
667  </td><td align="right" valign="top"
668    ><span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X509Cert.isValidTime">source&nbsp;code</a></span>&nbsp;
669    </td>
670  </tr></table>
671 
672  <p>Check Certificate for expiry</p>
673  <p>raiseExcep: set True to raise an exception if certificate is
674  invalid</p>
675  <dl class="fields">
676  </dl>
677</td></tr></table>
678</div>
679<a name="verify"></a>
680<div>
681<table class="details" border="1" cellpadding="3"
682       cellspacing="0" width="100%" bgcolor="white">
683<tr><td>
684  <table width="100%" cellpadding="0" cellspacing="0" border="0">
685  <tr valign="top"><td>
686  <h3 class="epydoc"><span class="sig"><span class="sig-name">verify</span>(<span class="sig-arg">self</span>,
687        <span class="sig-arg">pubKey</span>,
688        <span class="sig-arg">**kw</span>)</span>
689  </h3>
690  </td><td align="right" valign="top"
691    ><span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X509Cert.verify">source&nbsp;code</a></span>&nbsp;
692    </td>
693  </tr></table>
694 
695  <p>Verify a certificate against the public key of the issuer</p>
696  <dl class="fields">
697    <dt>Parameters:</dt>
698    <dd><ul class="nomargin-top">
699        <li><strong class="pname"><code>pubKey</code></strong> (M2Crypto.RSA.RSA_pub) - public key of cert that issued self</li>
700        <li><strong class="pname"><code>**kw</code></strong> - keywords to pass to M2Crypto.X509.X509 - 'pkey'</li>
701    </ul></dd>
702    <dt>Returns: bool</dt>
703        <dd>True if verifies OK, False otherwise</dd>
704  </dl>
705</td></tr></table>
706</div>
707<br />
708<!-- ==================== CLASS VARIABLE DETAILS ==================== -->
709<a name="section-ClassVariableDetails"></a>
710<table class="details" border="1" cellpadding="3"
711       cellspacing="0" width="100%" bgcolor="white">
712<tr bgcolor="#70b0f0" class="table-header">
713  <td colspan="2" class="table-header">
714    <table border="0" cellpadding="0" cellspacing="0" width="100%">
715      <tr valign="top">
716        <td align="left"><span class="table-header">Class Variable Details</span></td>
717        <td align="right" valign="top"
718         ><span class="options">[<a href="#section-ClassVariableDetails"
719         class="privatelink" onclick="toggle_private();"
720         >hide private</a>]</span></td>
721      </tr>
722    </table>
723  </td>
724</tr>
725</table>
726<a name="m2CryptoX509"></a>
727<div>
728<table class="details" border="1" cellpadding="3"
729       cellspacing="0" width="100%" bgcolor="white">
730<tr><td>
731  <h3 class="epydoc">m2CryptoX509</h3>
732 
733  <dl class="fields">
734  </dl>
735  <dl class="fields">
736    <dt>Value:</dt>
737      <dd><table><tr><td><pre class="variable">
738property(fset= __setM2CryptoX509, fget= __getM2CryptoX509, doc= &quot;M2Cry<span class="variable-linewrap"><img src="crarr.png" alt="\" /></span>
739pto.X509.X509 type&quot;)
740</pre></td></tr></table>
741</dd>
742  </dl>
743</td></tr></table>
744</div>
745<a name="version"></a>
746<div>
747<table class="details" border="1" cellpadding="3"
748       cellspacing="0" width="100%" bgcolor="white">
749<tr><td>
750  <h3 class="epydoc">version</h3>
751 
752  <dl class="fields">
753  </dl>
754  <dl class="fields">
755    <dt>Value:</dt>
756      <dd><table><tr><td><pre class="variable">
757property(fget= __getVersion, doc= &quot;X.509 Certificate version&quot;)
758</pre></td></tr></table>
759</dd>
760  </dl>
761</td></tr></table>
762</div>
763<a name="serialNumber"></a>
764<div>
765<table class="details" border="1" cellpadding="3"
766       cellspacing="0" width="100%" bgcolor="white">
767<tr><td>
768  <h3 class="epydoc">serialNumber</h3>
769 
770  <dl class="fields">
771  </dl>
772  <dl class="fields">
773    <dt>Value:</dt>
774      <dd><table><tr><td><pre class="variable">
775property(fget= __getSerialNumber, doc= &quot;X.509 Certificate Serial Numbe<span class="variable-linewrap"><img src="crarr.png" alt="\" /></span>
776r&quot;)
777</pre></td></tr></table>
778</dd>
779  </dl>
780</td></tr></table>
781</div>
782<a name="notBefore"></a>
783<div>
784<table class="details" border="1" cellpadding="3"
785       cellspacing="0" width="100%" bgcolor="white">
786<tr><td>
787  <h3 class="epydoc">notBefore</h3>
788 
789  <dl class="fields">
790  </dl>
791  <dl class="fields">
792    <dt>Value:</dt>
793      <dd><table><tr><td><pre class="variable">
794property(fget= __getNotBefore, doc= &quot;Not before validity time as datet<span class="variable-linewrap"><img src="crarr.png" alt="\" /></span>
795ime type&quot;)
796</pre></td></tr></table>
797</dd>
798  </dl>
799</td></tr></table>
800</div>
801<a name="notAfter"></a>
802<div>
803<table class="details" border="1" cellpadding="3"
804       cellspacing="0" width="100%" bgcolor="white">
805<tr><td>
806  <h3 class="epydoc">notAfter</h3>
807 
808  <dl class="fields">
809  </dl>
810  <dl class="fields">
811    <dt>Value:</dt>
812      <dd><table><tr><td><pre class="variable">
813property(fget= __getNotAfter, doc= &quot;Not after validity time as datetim<span class="variable-linewrap"><img src="crarr.png" alt="\" /></span>
814e type&quot;)
815</pre></td></tr></table>
816</dd>
817  </dl>
818</td></tr></table>
819</div>
820<a name="subject"></a>
821<div>
822<table class="details" border="1" cellpadding="3"
823       cellspacing="0" width="100%" bgcolor="white">
824<tr><td>
825  <h3 class="epydoc">subject</h3>
826 
827  <dl class="fields">
828  </dl>
829  <dl class="fields">
830    <dt>Value:</dt>
831      <dd><table><tr><td><pre class="variable">
832property(fget= __getSubject, doc= &quot;Certificate subject&quot;)
833</pre></td></tr></table>
834</dd>
835  </dl>
836</td></tr></table>
837</div>
838<br />
839<!-- ==================== NAVIGATION BAR ==================== -->
840<table class="navbar" border="0" width="100%" cellpadding="0"
841       bgcolor="#a0c0ff" cellspacing="0">
842  <tr valign="middle">
843  <!-- Home link -->
844      <th>&nbsp;&nbsp;&nbsp;<a
845        href="ndg-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>
846
847  <!-- Tree link -->
848      <th>&nbsp;&nbsp;&nbsp;<a
849        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
850
851  <!-- Index link -->
852      <th>&nbsp;&nbsp;&nbsp;<a
853        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
854
855  <!-- Help link -->
856      <th>&nbsp;&nbsp;&nbsp;<a
857        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
858
859  <!-- Project homepage -->
860      <th class="navbar" align="right" width="100%">
861        <table border="0" cellpadding="0" cellspacing="0">
862          <tr><th class="navbar" align="center"
863            >NDG Security</th>
864          </tr></table></th>
865  </tr>
866</table>
867<table border="0" cellpadding="0" cellspacing="0" width="100%%">
868  <tr>
869    <td align="left" class="footer">
870    <a href="epydoc-log.html">Generated by Epydoc
871    3.0.1 on Thu Sep  4 09:37:44 2008</a>
872    </td>
873    <td align="right" class="footer">
874      <a target="mainFrame" href="http://epydoc.sourceforge.net"
875        >http://epydoc.sourceforge.net</a>
876    </td>
877  </tr>
878</table>
879
880<script type="text/javascript">
881  <!--
882  // Private objects are initially displayed (because if
883  // javascript is turned off then we want them to be
884  // visible); but by default, we want to hide them.  So hide
885  // them unless we have a cookie that says to show them.
886  checkCookie();
887  // -->
888</script>
889</body>
890</html>
Note: See TracBrowser for help on using the repository browser.