source: TI12-security/trunk/documentation/epydoc/ndg.security.server.ca.CertificateAuthority_services_server.CertificateAuthorityService-class.html @ 4245

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/documentation/epydoc/ndg.security.server.ca.CertificateAuthority_services_server.CertificateAuthorityService-class.html@4245
Revision 4245, 20.4 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.server.ca.CertificateAuthority_services_server.CertificateAuthorityService</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.server-module.html">Package&nbsp;server</a> ::
48        <a href="ndg.security.server.ca-module.html">Package&nbsp;ca</a> ::
49        <a href="ndg.security.server.ca.CertificateAuthority_services_server-module.html">Module&nbsp;CertificateAuthority_services_server</a> ::
50        Class&nbsp;CertificateAuthorityService
51      </span>
52    </td>
53    <td>
54      <table cellpadding="0" cellspacing="0">
55        <!-- hide/show private -->
56        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
57    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
58      </table>
59    </td>
60  </tr>
61</table>
62<!-- ==================== CLASS DESCRIPTION ==================== -->
63<h1 class="epydoc">Class CertificateAuthorityService</h1><p class="nomargin-top"><span class="codelink"><a href="ndg.security.server.ca.CertificateAuthority_services_server-pysrc.html#CertificateAuthorityService">source&nbsp;code</a></span></p>
64<center>
65<center>  <map id="uml_class_diagram_for_ndg_secu_219" name="uml_class_diagram_for_ndg_secu_219">
66<area shape="rect" href="javascript:void(0);" title="ZSI.ServiceContainer.ServiceInterface.wsAction" alt="" coords="32,28,259,46"/>
67<area shape="rect" href="javascript:void(0);" title="ZSI.ServiceContainer.ServiceInterface.__str__" alt="" coords="32,49,259,68"/>
68<area shape="rect" href="javascript:void(0);" title="ZSI.ServiceContainer.ServiceInterface.sign" alt="" coords="32,68,259,86"/>
69<area shape="rect" href="javascript:void(0);" title="ZSI.ServiceContainer.ServiceInterface.verify" alt="" coords="32,86,259,105"/>
70<area shape="rect" href="javascript:void(0);" title="ZSI.ServiceContainer.ServiceInterface.getPost" alt="" coords="32,105,259,124"/>
71<area shape="rect" href="javascript:void(0);" title="Returns a method of class." alt="" coords="32,124,259,142"/>
72<area shape="rect" href="javascript:void(0);" title="Returns operation name." alt="" coords="32,142,259,161"/>
73<area shape="rect" href="javascript:void(0);" title="Defines the interface for use with ServiceContainer Handlers." alt="" coords="31,10,260,162"/>
74<area shape="rect" href="javascript:void(0);" title="ZSI.ServiceContainer.ServiceSOAPBinding.__call___" alt="" coords="17,217,273,236"/>
75<area shape="rect" href="javascript:void(0);" title="Binding defines the set of wsdl:binding operations, it takes as input a ParsedSoap instance and parses it into a pyobj." alt="" coords="16,192,275,237"/>
76<area shape="rect" href="ndg.security.server.ca.CertificateAuthority_services_server.CertificateAuthorityService&#45;class.html#soapAction" title="ndg.security.server.ca.CertificateAuthority_services_server.CertificateAuthorityService.soapAction" alt="" coords="32,284,259,302"/>
77<area shape="rect" href="ndg.security.server.ca.CertificateAuthority_services_server.CertificateAuthorityService&#45;class.html#root" title="ndg.security.server.ca.CertificateAuthority_services_server.CertificateAuthorityService.root" alt="" coords="32,302,259,321"/>
78<area shape="rect" href="ndg.security.server.ca.CertificateAuthority_services_server.CertificateAuthorityService&#45;class.html#__init__" title="ndg.security.server.ca.CertificateAuthority_services_server.CertificateAuthorityService.__init__" alt="" coords="32,324,259,342"/>
79<area shape="rect" href="ndg.security.server.ca.CertificateAuthority_services_server.CertificateAuthorityService&#45;class.html#authorize" title="ndg.security.server.ca.CertificateAuthority_services_server.CertificateAuthorityService.authorize" alt="" coords="32,342,259,361"/>
80<area shape="rect" href="ndg.security.server.ca.CertificateAuthority_services_server.CertificateAuthorityService&#45;class.html#soap_issueCert" title="ndg.security.server.ca.CertificateAuthority_services_server.CertificateAuthorityService.soap_issueCert" alt="" coords="32,361,259,380"/>
81<area shape="rect" href="ndg.security.server.ca.CertificateAuthority_services_server.CertificateAuthorityService&#45;class.html#soap_revokeCert" title="ndg.security.server.ca.CertificateAuthority_services_server.CertificateAuthorityService.soap_revokeCert" alt="" coords="32,380,259,398"/>
82<area shape="rect" href="ndg.security.server.ca.CertificateAuthority_services_server.CertificateAuthorityService&#45;class.html#soap_getCRL" title="ndg.security.server.ca.CertificateAuthority_services_server.CertificateAuthorityService.soap_getCRL" alt="" coords="32,398,259,417"/>
83<area shape="rect" href="ndg.security.server.ca.CertificateAuthority_services_server.CertificateAuthorityService&#45;class.html" title="ndg.security.server.ca.CertificateAuthority_services_server.CertificateAuthorityService" alt="" coords="31,266,260,418"/>
84</map>
85  <img src="uml_class_diagram_for_ndg_secu_219.gif" alt='' usemap="#uml_class_diagram_for_ndg_secu_219" ismap="ismap" class="graph-without-title" />
86</center>
87</center>
88<hr />
89<!-- ==================== INSTANCE METHODS ==================== -->
90<a name="section-InstanceMethods"></a>
91<table class="summary" border="1" cellpadding="3"
92       cellspacing="0" width="100%" bgcolor="white">
93<tr bgcolor="#70b0f0" class="table-header">
94  <td colspan="2" class="table-header">
95    <table border="0" cellpadding="0" cellspacing="0" width="100%">
96      <tr valign="top">
97        <td align="left"><span class="table-header">Instance Methods</span></td>
98        <td align="right" valign="top"
99         ><span class="options">[<a href="#section-InstanceMethods"
100         class="privatelink" onclick="toggle_private();"
101         >hide private</a>]</span></td>
102      </tr>
103    </table>
104  </td>
105</tr>
106<tr>
107    <td width="15%" align="right" valign="top" class="summary">
108      <span class="summary-type">&nbsp;</span>
109    </td><td class="summary">
110      <table width="100%" cellpadding="0" cellspacing="0" border="0">
111        <tr>
112          <td><span class="summary-sig"><a href="ndg.security.server.ca.CertificateAuthority_services_server.CertificateAuthorityService-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>,
113        <span class="summary-sig-arg">post</span>=<span class="summary-sig-default">''</span>,
114        <span class="summary-sig-arg">**kw</span>)</span></td>
115          <td align="right" valign="top">
116            <span class="codelink"><a href="ndg.security.server.ca.CertificateAuthority_services_server-pysrc.html#CertificateAuthorityService.__init__">source&nbsp;code</a></span>
117           
118          </td>
119        </tr>
120      </table>
121     
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      <table width="100%" cellpadding="0" cellspacing="0" border="0">
129        <tr>
130          <td><span class="summary-sig"><a href="ndg.security.server.ca.CertificateAuthority_services_server.CertificateAuthorityService-class.html#authorize" class="summary-sig-name">authorize</a>(<span class="summary-sig-arg">self</span>,
131        <span class="summary-sig-arg">auth_info</span>,
132        <span class="summary-sig-arg">post</span>,
133        <span class="summary-sig-arg">action</span>)</span></td>
134          <td align="right" valign="top">
135            <span class="codelink"><a href="ndg.security.server.ca.CertificateAuthority_services_server-pysrc.html#CertificateAuthorityService.authorize">source&nbsp;code</a></span>
136           
137          </td>
138        </tr>
139      </table>
140     
141    </td>
142  </tr>
143<tr>
144    <td width="15%" align="right" valign="top" class="summary">
145      <span class="summary-type">&nbsp;</span>
146    </td><td class="summary">
147      <table width="100%" cellpadding="0" cellspacing="0" border="0">
148        <tr>
149          <td><span class="summary-sig"><a name="soap_issueCert"></a><span class="summary-sig-name">soap_issueCert</span>(<span class="summary-sig-arg">self</span>,
150        <span class="summary-sig-arg">ps</span>)</span></td>
151          <td align="right" valign="top">
152            <span class="codelink"><a href="ndg.security.server.ca.CertificateAuthority_services_server-pysrc.html#CertificateAuthorityService.soap_issueCert">source&nbsp;code</a></span>
153           
154          </td>
155        </tr>
156      </table>
157     
158    </td>
159  </tr>
160<tr>
161    <td width="15%" align="right" valign="top" class="summary">
162      <span class="summary-type">&nbsp;</span>
163    </td><td class="summary">
164      <table width="100%" cellpadding="0" cellspacing="0" border="0">
165        <tr>
166          <td><span class="summary-sig"><a name="soap_revokeCert"></a><span class="summary-sig-name">soap_revokeCert</span>(<span class="summary-sig-arg">self</span>,
167        <span class="summary-sig-arg">ps</span>)</span></td>
168          <td align="right" valign="top">
169            <span class="codelink"><a href="ndg.security.server.ca.CertificateAuthority_services_server-pysrc.html#CertificateAuthorityService.soap_revokeCert">source&nbsp;code</a></span>
170           
171          </td>
172        </tr>
173      </table>
174     
175    </td>
176  </tr>
177<tr>
178    <td width="15%" align="right" valign="top" class="summary">
179      <span class="summary-type">&nbsp;</span>
180    </td><td class="summary">
181      <table width="100%" cellpadding="0" cellspacing="0" border="0">
182        <tr>
183          <td><span class="summary-sig"><a name="soap_getCRL"></a><span class="summary-sig-name">soap_getCRL</span>(<span class="summary-sig-arg">self</span>,
184        <span class="summary-sig-arg">ps</span>)</span></td>
185          <td align="right" valign="top">
186            <span class="codelink"><a href="ndg.security.server.ca.CertificateAuthority_services_server-pysrc.html#CertificateAuthorityService.soap_getCRL">source&nbsp;code</a></span>
187           
188          </td>
189        </tr>
190      </table>
191     
192    </td>
193  </tr>
194  <tr>
195    <td colspan="2" class="summary">
196    <p class="indent-wrapped-lines"><b>Inherited from <code>ZSI.ServiceContainer.ServiceSOAPBinding</code></b>:
197      <code>__call___</code>
198      </p>
199    <p class="indent-wrapped-lines"><b>Inherited from <code>ZSI.ServiceContainer.ServiceInterface</code></b>:
200      <code>__str__</code>,
201      <code>getOperation</code>,
202      <code>getOperationName</code>,
203      <code>getPost</code>,
204      <code>sign</code>,
205      <code>verify</code>
206      </p>
207    </td>
208  </tr>
209</table>
210<!-- ==================== CLASS VARIABLES ==================== -->
211<a name="section-ClassVariables"></a>
212<table class="summary" border="1" cellpadding="3"
213       cellspacing="0" width="100%" bgcolor="white">
214<tr bgcolor="#70b0f0" class="table-header">
215  <td colspan="2" class="table-header">
216    <table border="0" cellpadding="0" cellspacing="0" width="100%">
217      <tr valign="top">
218        <td align="left"><span class="table-header">Class Variables</span></td>
219        <td align="right" valign="top"
220         ><span class="options">[<a href="#section-ClassVariables"
221         class="privatelink" onclick="toggle_private();"
222         >hide private</a>]</span></td>
223      </tr>
224    </table>
225  </td>
226</tr>
227<tr>
228    <td width="15%" align="right" valign="top" class="summary">
229      <span class="summary-type">&nbsp;</span>
230    </td><td class="summary">
231        <a name="soapAction"></a><span class="summary-name">soapAction</span> = <code title="{}">{}</code>
232    </td>
233  </tr>
234<tr>
235    <td width="15%" align="right" valign="top" class="summary">
236      <span class="summary-type">&nbsp;</span>
237    </td><td class="summary">
238        <a name="root"></a><span class="summary-name">root</span> = <code title="{}">{}</code>
239    </td>
240  </tr>
241<tr class="private">
242    <td width="15%" align="right" valign="top" class="summary">
243      <span class="summary-type">&nbsp;</span>
244    </td><td class="summary">
245        <a href="ndg.security.server.ca.CertificateAuthority_services_server.CertificateAuthorityService-class.html#_wsdl" class="summary-name" onclick="show_private();">_wsdl</a> = <code title="&quot;&quot;&quot;&lt;?xml version=\&quot;1.0\&quot; ?&gt;
246&lt;wsdl:definitions name=\&quot;CertificateAuthority\&quot; targetNamespace=\&quot;urn:\
247ndg:security:ca\&quot; xmlns=\&quot;http://schemas.xmlsoap.org/wsdl/\&quot; xmlns:htt\
248p=\&quot;http://schemas.xmlsoap.org/wsdl/http/\&quot; xmlns:soap=\&quot;http://schema\
249s.xmlsoap.org/wsdl/soap/\&quot; xmlns:soapenc=\&quot;http://schemas.xmlsoap.org/\
250soap/encoding/\&quot; xmlns:tns=\&quot;urn:ndg:security:ca\&quot; xmlns:wsdl=\&quot;http:/\
251/schemas.xmlsoap.org/wsdl/\&quot; xmlns:xsd=\&quot;http://www.w3.org/2001/XMLSch\
252ema\&quot;&gt;
253...">&quot;&quot;&quot;&lt;?xml version=\&quot;1.0\&quot;<code class="variable-ellipsis">...</code></code>
254    </td>
255  </tr>
256  <tr>
257    <td colspan="2" class="summary">
258    <p class="indent-wrapped-lines"><b>Inherited from <code>ZSI.ServiceContainer.ServiceInterface</code></b>:
259      <code>wsAction</code>
260      </p>
261    </td>
262  </tr>
263</table>
264<!-- ==================== METHOD DETAILS ==================== -->
265<a name="section-MethodDetails"></a>
266<table class="details" border="1" cellpadding="3"
267       cellspacing="0" width="100%" bgcolor="white">
268<tr bgcolor="#70b0f0" class="table-header">
269  <td colspan="2" class="table-header">
270    <table border="0" cellpadding="0" cellspacing="0" width="100%">
271      <tr valign="top">
272        <td align="left"><span class="table-header">Method Details</span></td>
273        <td align="right" valign="top"
274         ><span class="options">[<a href="#section-MethodDetails"
275         class="privatelink" onclick="toggle_private();"
276         >hide private</a>]</span></td>
277      </tr>
278    </table>
279  </td>
280</tr>
281</table>
282<a name="__init__"></a>
283<div>
284<table class="details" border="1" cellpadding="3"
285       cellspacing="0" width="100%" bgcolor="white">
286<tr><td>
287  <table width="100%" cellpadding="0" cellspacing="0" border="0">
288  <tr valign="top"><td>
289  <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>,
290        <span class="sig-arg">post</span>=<span class="sig-default">''</span>,
291        <span class="sig-arg">**kw</span>)</span>
292    <br /><em class="fname">(Constructor)</em>
293  </h3>
294  </td><td align="right" valign="top"
295    ><span class="codelink"><a href="ndg.security.server.ca.CertificateAuthority_services_server-pysrc.html#CertificateAuthorityService.__init__">source&nbsp;code</a></span>&nbsp;
296    </td>
297  </tr></table>
298 
299 
300  <dl class="fields">
301    <dt>Overrides:
302        ZSI.ServiceContainer.ServiceInterface.__init__
303    </dt>
304  </dl>
305</td></tr></table>
306</div>
307<a name="authorize"></a>
308<div>
309<table class="details" border="1" cellpadding="3"
310       cellspacing="0" width="100%" bgcolor="white">
311<tr><td>
312  <table width="100%" cellpadding="0" cellspacing="0" border="0">
313  <tr valign="top"><td>
314  <h3 class="epydoc"><span class="sig"><span class="sig-name">authorize</span>(<span class="sig-arg">self</span>,
315        <span class="sig-arg">auth_info</span>,
316        <span class="sig-arg">post</span>,
317        <span class="sig-arg">action</span>)</span>
318  </h3>
319  </td><td align="right" valign="top"
320    ><span class="codelink"><a href="ndg.security.server.ca.CertificateAuthority_services_server-pysrc.html#CertificateAuthorityService.authorize">source&nbsp;code</a></span>&nbsp;
321    </td>
322  </tr></table>
323 
324 
325  <dl class="fields">
326    <dt>Overrides:
327        ZSI.ServiceContainer.ServiceInterface.authorize
328    </dt>
329  </dl>
330</td></tr></table>
331</div>
332<br />
333<!-- ==================== CLASS VARIABLE DETAILS ==================== -->
334<a name="section-ClassVariableDetails"></a>
335<table class="details" border="1" cellpadding="3"
336       cellspacing="0" width="100%" bgcolor="white">
337<tr bgcolor="#70b0f0" class="table-header">
338  <td colspan="2" class="table-header">
339    <table border="0" cellpadding="0" cellspacing="0" width="100%">
340      <tr valign="top">
341        <td align="left"><span class="table-header">Class Variable Details</span></td>
342        <td align="right" valign="top"
343         ><span class="options">[<a href="#section-ClassVariableDetails"
344         class="privatelink" onclick="toggle_private();"
345         >hide private</a>]</span></td>
346      </tr>
347    </table>
348  </td>
349</tr>
350</table>
351<a name="_wsdl"></a>
352<div class="private">
353<table class="details" border="1" cellpadding="3"
354       cellspacing="0" width="100%" bgcolor="white">
355<tr><td>
356  <h3 class="epydoc">_wsdl</h3>
357 
358  <dl class="fields">
359  </dl>
360  <dl class="fields">
361    <dt>Value:</dt>
362      <dd><table><tr><td><pre class="variable">
363&quot;&quot;&quot;&lt;?xml version=\&quot;1.0\&quot; ?&gt;
364&lt;wsdl:definitions name=\&quot;CertificateAuthority\&quot; targetNamespace=\&quot;urn:<span class="variable-linewrap"><img src="crarr.png" alt="\" /></span>
365ndg:security:ca\&quot; xmlns=\&quot;http://schemas.xmlsoap.org/wsdl/\&quot; xmlns:htt<span class="variable-linewrap"><img src="crarr.png" alt="\" /></span>
366p=\&quot;http://schemas.xmlsoap.org/wsdl/http/\&quot; xmlns:soap=\&quot;http://schema<span class="variable-linewrap"><img src="crarr.png" alt="\" /></span>
367s.xmlsoap.org/wsdl/soap/\&quot; xmlns:soapenc=\&quot;http://schemas.xmlsoap.org/<span class="variable-linewrap"><img src="crarr.png" alt="\" /></span>
368soap/encoding/\&quot; xmlns:tns=\&quot;urn:ndg:security:ca\&quot; xmlns:wsdl=\&quot;http:/<span class="variable-linewrap"><img src="crarr.png" alt="\" /></span>
369/schemas.xmlsoap.org/wsdl/\&quot; xmlns:xsd=\&quot;http://www.w3.org/2001/XMLSch<span class="variable-linewrap"><img src="crarr.png" alt="\" /></span>
370ema\&quot;&gt;
371<code class="variable-ellipsis">...</code>
372</pre></td></tr></table>
373</dd>
374  </dl>
375</td></tr></table>
376</div>
377<br />
378<!-- ==================== NAVIGATION BAR ==================== -->
379<table class="navbar" border="0" width="100%" cellpadding="0"
380       bgcolor="#a0c0ff" cellspacing="0">
381  <tr valign="middle">
382  <!-- Home link -->
383      <th>&nbsp;&nbsp;&nbsp;<a
384        href="ndg-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>
385
386  <!-- Tree link -->
387      <th>&nbsp;&nbsp;&nbsp;<a
388        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
389
390  <!-- Index link -->
391      <th>&nbsp;&nbsp;&nbsp;<a
392        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
393
394  <!-- Help link -->
395      <th>&nbsp;&nbsp;&nbsp;<a
396        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
397
398  <!-- Project homepage -->
399      <th class="navbar" align="right" width="100%">
400        <table border="0" cellpadding="0" cellspacing="0">
401          <tr><th class="navbar" align="center"
402            >NDG Security</th>
403          </tr></table></th>
404  </tr>
405</table>
406<table border="0" cellpadding="0" cellspacing="0" width="100%%">
407  <tr>
408    <td align="left" class="footer">
409    <a href="epydoc-log.html">Generated by Epydoc
410    3.0.1 on Thu Sep  4 09:37:50 2008</a>
411    </td>
412    <td align="right" class="footer">
413      <a target="mainFrame" href="http://epydoc.sourceforge.net"
414        >http://epydoc.sourceforge.net</a>
415    </td>
416  </tr>
417</table>
418
419<script type="text/javascript">
420  <!--
421  // Private objects are initially displayed (because if
422  // javascript is turned off then we want them to be
423  // visible); but by default, we want to hide them.  So hide
424  // them unless we have a cookie that says to show them.
425  checkCookie();
426  // -->
427</script>
428</body>
429</html>
Note: See TracBrowser for help on using the repository browser.