source: TI12-security/trunk/documentation/epydoc/ndg.security.common.AttAuthority-pysrc.html @ 4245

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/documentation/epydoc/ndg.security.common.AttAuthority-pysrc.html@4245
Revision 4245, 197.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.common.AttAuthority</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        Package&nbsp;AttAuthority
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<h1 class="epydoc">Source Code for <a href="ndg.security.common.AttAuthority-module.html">Package ndg.security.common.AttAuthority</a></h1>
61<pre class="py-src">
62<a name="L1"></a><tt class="py-lineno">  1</tt>  <tt class="py-line"><tt class="py-docstring">"""NDG Security Attribute Authority client - client interface classes to the</tt> </tt>
63<a name="L2"></a><tt class="py-lineno">  2</tt>  <tt class="py-line"><tt class="py-docstring">Attribute Authority.  These have been separated from their</tt> </tt>
64<a name="L3"></a><tt class="py-lineno">  3</tt>  <tt class="py-line"><tt class="py-docstring">original location in the SecurityClient since they have the </tt> </tt>
65<a name="L4"></a><tt class="py-lineno">  4</tt>  <tt class="py-line"><tt class="py-docstring">unusual place of being required by both client and server</tt> </tt>
66<a name="L5"></a><tt class="py-lineno">  5</tt>  <tt class="py-line"><tt class="py-docstring">NDG security packages.  For the server side they are required</tt> </tt>
67<a name="L6"></a><tt class="py-lineno">  6</tt>  <tt class="py-line"><tt class="py-docstring">as the CredWallet invoked by the Session Manager acts as a</tt> </tt>
68<a name="L7"></a><tt class="py-lineno">  7</tt>  <tt class="py-line"><tt class="py-docstring">client to Attribute Authorities when negotiating the required</tt> </tt>
69<a name="L8"></a><tt class="py-lineno">  8</tt>  <tt class="py-line"><tt class="py-docstring">Attribute Certificate.</tt> </tt>
70<a name="L9"></a><tt class="py-lineno">  9</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
71<a name="L10"></a><tt class="py-lineno"> 10</tt>  <tt class="py-line"><tt class="py-docstring">Make requests for Attribute Certificates used for authorisation</tt> </tt>
72<a name="L11"></a><tt class="py-lineno"> 11</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
73<a name="L12"></a><tt class="py-lineno"> 12</tt>  <tt class="py-line"><tt class="py-docstring">NERC Data Grid Project</tt> </tt>
74<a name="L13"></a><tt class="py-lineno"> 13</tt>  <tt class="py-line"><tt class="py-docstring">"""</tt> </tt>
75<a name="L14"></a><tt class="py-lineno"> 14</tt>  <tt class="py-line"><tt class="py-name">__author__</tt> <tt class="py-op">=</tt> <tt class="py-string">"P J Kershaw"</tt> </tt>
76<a name="L15"></a><tt class="py-lineno"> 15</tt>  <tt class="py-line"><tt class="py-name">__date__</tt> <tt class="py-op">=</tt> <tt class="py-string">"17/11/06"</tt> </tt>
77<a name="L16"></a><tt class="py-lineno"> 16</tt>  <tt class="py-line"><tt class="py-name">__copyright__</tt> <tt class="py-op">=</tt> <tt class="py-string">"(C) 2007 STFC &amp; NERC"</tt> </tt>
78<a name="L17"></a><tt class="py-lineno"> 17</tt>  <tt class="py-line"><tt class="py-name">__contact__</tt> <tt class="py-op">=</tt> <tt class="py-string">"P.J.Kershaw@rl.ac.uk"</tt> </tt>
79<a name="L18"></a><tt class="py-lineno"> 18</tt>  <tt class="py-line"><tt class="py-name">__license__</tt> <tt class="py-op">=</tt> \ </tt>
80<a name="L19"></a><tt class="py-lineno"> 19</tt>  <tt class="py-line"><tt class="py-string">"""This software may be distributed under the terms of the Q Public </tt> </tt>
81<a name="L20"></a><tt class="py-lineno"> 20</tt>  <tt class="py-line"><tt class="py-string">License, version 1.0 or later."""</tt> </tt>
82<a name="L21"></a><tt class="py-lineno"> 21</tt>  <tt class="py-line"><tt class="py-name">__contact__</tt> <tt class="py-op">=</tt> <tt class="py-string">"P.J.Kershaw@rl.ac.uk"</tt> </tt>
83<a name="L22"></a><tt class="py-lineno"> 22</tt>  <tt class="py-line"><tt id="link-0" class="py-name" targets="Variable ndg.__revision__=ndg-module.html#__revision__,Variable ndg.security.__revision__=ndg.security-module.html#__revision__,Variable ndg.security.__revision__=ndg.security-module.html#__revision__,Variable ndg.security.client.LogClient.__revision__=ndg.security.client.LogClient-module.html#__revision__,Variable ndg.security.client.SimpleCAClient.__revision__=ndg.security.client.SimpleCAClient-module.html#__revision__,Variable ndg.security.client.__revision__=ndg.security.client-module.html#__revision__,Variable ndg.security.client.ndgSessionClient.__revision__=ndg.security.client.ndgSessionClient-module.html#__revision__,Variable ndg.security.common.AttAuthority.__revision__=ndg.security.common.AttAuthority-module.html#__revision__,Variable ndg.security.common.AttCert.__revision__=ndg.security.common.AttCert-module.html#__revision__,Variable ndg.security.common.CredWallet.__revision__=ndg.security.common.CredWallet-module.html#__revision__,Variable ndg.security.common.SQLObject.__revision__=ndg.security.common.SQLObject-module.html#__revision__,Variable ndg.security.common.SecurityCGI.__revision__=ndg.security.common.SecurityCGI-module.html#__revision__,Variable ndg.security.common.SessionMgr.__revision__=ndg.security.common.SessionMgr-module.html#__revision__,Variable ndg.security.common.X509.__revision__=ndg.security.common.X509-module.html#__revision__,Variable ndg.security.common.XMLSec.__revision__=ndg.security.common.XMLSec-module.html#__revision__,Variable ndg.security.common.__revision__=ndg.security.common-module.html#__revision__,Variable ndg.security.common.authz.__revision__=ndg.security.common.authz-module.html#__revision__,Variable ndg.security.common.authz.pdp.__revision__=ndg.security.common.authz.pdp-module.html#__revision__,Variable ndg.security.common.authz.pdp.browse.__revision__=ndg.security.common.authz.pdp.browse-module.html#__revision__,Variable ndg.security.common.authz.pdp.proftp.__revision__=ndg.security.common.authz.pdp.proftp-module.html#__revision__,Variable ndg.security.common.authz.pep.__revision__=ndg.security.common.authz.pep-module.html#__revision__,Variable ndg.security.common.ca.__revision__=ndg.security.common.ca-module.html#__revision__,Variable ndg.security.common.gatekeeper.__revision__=ndg.security.common.gatekeeper-module.html#__revision__,Variable ndg.security.common.logService.__revision__=ndg.security.common.logService-module.html#__revision__,Variable ndg.security.common.logService.log_services_server.__revision__=ndg.security.common.logService.log_services_server-module.html#__revision__,Variable ndg.security.common.m2CryptoSSLUtility.__revision__=ndg.security.common.m2CryptoSSLUtility-module.html#__revision__,Variable ndg.security.common.openssl.__revision__=ndg.security.common.openssl-module.html#__revision__,Variable ndg.security.common.pylons.security_util.__revision__=ndg.security.common.pylons.security_util-module.html#__revision__,Variable ndg.security.common.saml.__revision__=ndg.security.common.saml-module.html#__revision__,Variable ndg.security.common.sessionCookie.__revision__=ndg.security.common.sessionCookie-module.html#__revision__,Variable ndg.security.common.utils.ClassFactory.__revision__=ndg.security.common.utils.ClassFactory-module.html#__revision__,Variable ndg.security.common.utils.ConfigFileParsers.__revision__=ndg.security.common.utils.ConfigFileParsers-module.html#__revision__,Variable ndg.security.common.wssecurity.BaseSignatureHandler.__revision__=ndg.security.common.wssecurity.BaseSignatureHandler-module.html#__revision__,Variable ndg.security.common.wssecurity.__revision__=ndg.security.common.wssecurity-module.html#__revision__,Variable ndg.security.common.wssecurity.dom.__revision__=ndg.security.common.wssecurity.dom-module.html#__revision__,Variable ndg.security.common.wssecurity.etree.__revision__=ndg.security.common.wssecurity.etree-module.html#__revision__,Variable ndg.security.common.xmlsec.__revision__=ndg.security.common.xmlsec-module.html#__revision__,Variable ndg.security.common.xmlsec.dom.__revision__=ndg.security.common.xmlsec.dom-module.html#__revision__,Variable ndg.security.common.xmlsec.etree.__revision__=ndg.security.common.xmlsec.etree-module.html#__revision__,Variable ndg.security.common.zsi_utils.httpproxy.__revision__=ndg.security.common.zsi_utils.httpproxy-module.html#__revision__,Variable ndg.security.server.AttAuthority.__revision__=ndg.security.server.AttAuthority-module.html#__revision__,Variable ndg.security.server.Log.__revision__=ndg.security.server.Log-module.html#__revision__,Variable ndg.security.server.SessionMgr.__revision__=ndg.security.server.SessionMgr-module.html#__revision__,Variable ndg.security.server.__revision__=ndg.security.server-module.html#__revision__,Variable ndg.security.server.authenservice.MyProxy.__revision__=ndg.security.server.authenservice.MyProxy-module.html#__revision__,Variable ndg.security.server.authenservice.__revision__=ndg.security.server.authenservice-module.html#__revision__,Variable ndg.security.server.authenservice.session_mgr_my_proxy_client.__revision__=ndg.security.server.authenservice.session_mgr_my_proxy_client-module.html#__revision__,Variable ndg.security.server.ca.__revision__=ndg.security.server.ca-module.html#__revision__,Variable ndg.security.server.conf.__revision__=ndg.security.server.conf-module.html#__revision__,Variable ndg.security.server.conf.attCertLog.__revision__=ndg.security.server.conf.attCertLog-module.html#__revision__,Variable ndg.security.server.conf.certs.__revision__=ndg.security.server.conf.certs-module.html#__revision__,Variable ndg.security.server.conf.certs.ca.__revision__=ndg.security.server.conf.certs.ca-module.html#__revision__,Variable ndg.security.server.conf.userRoles.__revision__=ndg.security.server.conf.userRoles-module.html#__revision__,Variable ndg.security.server.initCredReposDb.__revision__=ndg.security.server.initCredReposDb-module.html#__revision__,Variable ndg.security.server.log.__revision__=ndg.security.server.log-module.html#__revision__,Variable ndg.security.server.pylons.container.lib.openid_provider_util.__revision__=ndg.security.server.pylons.container.lib.openid_provider_util-module.html#__revision__,Variable ndg.security.server.share.__revision__=ndg.security.server.share-module.html#__revision__,Variable ndg.security.server.twisted.__revision__=ndg.security.server.twisted-module.html#__revision__,Variable ndg.security.server.wsgi.openid_provider.__revision__=ndg.security.server.wsgi.openid_provider-module.html#__revision__,Variable ndg.security.server.wsgi.soap.__revision__=ndg.security.server.wsgi.soap-module.html#__revision__,Variable ndg.security.server.wsgi.wssecurity.__revision__=ndg.security.server.wsgi.wssecurity-module.html#__revision__,Variable ndg.security.test.Log.LogTest.__revision__=ndg.security.test.Log.LogTest-module.html#__revision__,Variable ndg.security.test.Log.__revision__=ndg.security.test.Log-module.html#__revision__,Variable ndg.security.test.X509.X509Test.__revision__=ndg.security.test.X509.X509Test-module.html#__revision__,Variable ndg.security.test.X509.__revision__=ndg.security.test.X509-module.html#__revision__,Variable ndg.security.test.XMLSecDoc.__revision__=ndg.security.test.XMLSecDoc-module.html#__revision__,Variable ndg.security.test.XMLSecDoc.xmlSecDocTest.__revision__=ndg.security.test.XMLSecDoc.xmlSecDocTest-module.html#__revision__,Variable ndg.security.test.__revision__=ndg.security.test-module.html#__revision__,Variable ndg.security.test.attAuthority.AttAuthorityClientTest.__revision__=ndg.security.test.attAuthority.AttAuthorityClientTest-module.html#__revision__,Variable ndg.security.test.attAuthority.__revision__=ndg.security.test.attAuthority-module.html#__revision__,Variable ndg.security.test.attAuthority.attCertLog.__revision__=ndg.security.test.attAuthority.attCertLog-module.html#__revision__,Variable ndg.security.test.attAuthority.ca.__revision__=ndg.security.test.attAuthority.ca-module.html#__revision__,Variable ndg.security.test.attAuthority.siteAServer.__revision__=ndg.security.test.attAuthority.siteAServer-module.html#__revision__,Variable ndg.security.test.attAuthority.siteAUserRoles.__revision__=ndg.security.test.attAuthority.siteAUserRoles-module.html#__revision__,Variable ndg.security.test.attAuthority.siteBServer.__revision__=ndg.security.test.attAuthority.siteBServer-module.html#__revision__,Variable ndg.security.test.attAuthority.siteBUserRoles.__revision__=ndg.security.test.attAuthority.siteBUserRoles-module.html#__revision__,Variable ndg.security.test.attCert.AttCertTest.__revision__=ndg.security.test.attCert.AttCertTest-module.html#__revision__,Variable ndg.security.test.attCert.__revision__=ndg.security.test.attCert-module.html#__revision__,Variable ndg.security.test.authenservice.__revision__=ndg.security.test.authenservice-module.html#__revision__,Variable ndg.security.test.authenservice.test_authen_service.__revision__=ndg.security.test.authenservice.test_authen_service-module.html#__revision__,Variable ndg.security.test.authz.pdp.testProftPDP.__revision__=ndg.security.test.authz.pdp.testProftPDP-module.html#__revision__,Variable ndg.security.test.ca.__revision__=ndg.security.test.ca-module.html#__revision__,Variable ndg.security.test.ca.caClientTest.__revision__=ndg.security.test.ca.caClientTest-module.html#__revision__,Variable ndg.security.test.myProxy.MyProxyClientTest.__revision__=ndg.security.test.myProxy.MyProxyClientTest-module.html#__revision__,Variable ndg.security.test.myProxy.__revision__=ndg.security.test.myProxy-module.html#__revision__,Variable ndg.security.test.saml.__revision__=ndg.security.test.saml-module.html#__revision__,Variable ndg.security.test.sessionCookie.SessionCookieTest.__revision__=ndg.security.test.sessionCookie.SessionCookieTest-module.html#__revision__,Variable ndg.security.test.sessionCookie.__revision__=ndg.security.test.sessionCookie-module.html#__revision__,Variable ndg.security.test.sessionMgr.__revision__=ndg.security.test.sessionMgr-module.html#__revision__,Variable ndg.security.test.sessionMgr.ca.__revision__=ndg.security.test.sessionMgr.ca-module.html#__revision__,Variable ndg.security.test.sessionMgr.test.__revision__=ndg.security.test.sessionMgr.test-module.html#__revision__,Variable ndg.security.test.sessionMgrClient.SessionMgrClientTest.__revision__=ndg.security.test.sessionMgrClient.SessionMgrClientTest-module.html#__revision__,Variable ndg.security.test.sessionMgrClient.__revision__=ndg.security.test.sessionMgrClient-module.html#__revision__,Variable ndg.security.test.sessionMgrClient.ca.__revision__=ndg.security.test.sessionMgrClient.ca-module.html#__revision__,Variable ndg.security.test.sessionMgrClient.server.__revision__=ndg.security.test.sessionMgrClient.server-module.html#__revision__,Variable ndg.security.test.wsSecurity.__revision__=ndg.security.test.wsSecurity-module.html#__revision__,Variable ndg.security.test.wsSecurity.client.__revision__=ndg.security.test.wsSecurity.client-module.html#__revision__,Variable ndg.security.test.wsSecurity.server.__revision__=ndg.security.test.wsSecurity.server-module.html#__revision__,Variable ndg.security.test.xmlsec.__revision__=ndg.security.test.xmlsec-module.html#__revision__,Variable ndg.security.test.xmlsec.dom.__revision__=ndg.security.test.xmlsec.dom-module.html#__revision__,Variable ndg.security.test.xmlsec.etree.test_etree.__revision__=ndg.security.test.xmlsec.etree.test_etree-module.html#__revision__"><a title="ndg.__revision__
84ndg.security.__revision__
85ndg.security.__revision__
86ndg.security.client.LogClient.__revision__
87ndg.security.client.SimpleCAClient.__revision__
88ndg.security.client.__revision__
89ndg.security.client.ndgSessionClient.__revision__
90ndg.security.common.AttAuthority.__revision__
91ndg.security.common.AttCert.__revision__
92ndg.security.common.CredWallet.__revision__
93ndg.security.common.SQLObject.__revision__
94ndg.security.common.SecurityCGI.__revision__
95ndg.security.common.SessionMgr.__revision__
96ndg.security.common.X509.__revision__
97ndg.security.common.XMLSec.__revision__
98ndg.security.common.__revision__
99ndg.security.common.authz.__revision__
100ndg.security.common.authz.pdp.__revision__
101ndg.security.common.authz.pdp.browse.__revision__
102ndg.security.common.authz.pdp.proftp.__revision__
103ndg.security.common.authz.pep.__revision__
104ndg.security.common.ca.__revision__
105ndg.security.common.gatekeeper.__revision__
106ndg.security.common.logService.__revision__
107ndg.security.common.logService.log_services_server.__revision__
108ndg.security.common.m2CryptoSSLUtility.__revision__
109ndg.security.common.openssl.__revision__
110ndg.security.common.pylons.security_util.__revision__
111ndg.security.common.saml.__revision__
112ndg.security.common.sessionCookie.__revision__
113ndg.security.common.utils.ClassFactory.__revision__
114ndg.security.common.utils.ConfigFileParsers.__revision__
115ndg.security.common.wssecurity.BaseSignatureHandler.__revision__
116ndg.security.common.wssecurity.__revision__
117ndg.security.common.wssecurity.dom.__revision__
118ndg.security.common.wssecurity.etree.__revision__
119ndg.security.common.xmlsec.__revision__
120ndg.security.common.xmlsec.dom.__revision__
121ndg.security.common.xmlsec.etree.__revision__
122ndg.security.common.zsi_utils.httpproxy.__revision__
123ndg.security.server.AttAuthority.__revision__
124ndg.security.server.Log.__revision__
125ndg.security.server.SessionMgr.__revision__
126ndg.security.server.__revision__
127ndg.security.server.authenservice.MyProxy.__revision__
128ndg.security.server.authenservice.__revision__
129ndg.security.server.authenservice.session_mgr_my_proxy_client.__revision__
130ndg.security.server.ca.__revision__
131ndg.security.server.conf.__revision__
132ndg.security.server.conf.attCertLog.__revision__
133ndg.security.server.conf.certs.__revision__
134ndg.security.server.conf.certs.ca.__revision__
135ndg.security.server.conf.userRoles.__revision__
136ndg.security.server.initCredReposDb.__revision__
137ndg.security.server.log.__revision__
138ndg.security.server.pylons.container.lib.openid_provider_util.__revision__
139ndg.security.server.share.__revision__
140ndg.security.server.twisted.__revision__
141ndg.security.server.wsgi.openid_provider.__revision__
142ndg.security.server.wsgi.soap.__revision__
143ndg.security.server.wsgi.wssecurity.__revision__
144ndg.security.test.Log.LogTest.__revision__
145ndg.security.test.Log.__revision__
146ndg.security.test.X509.X509Test.__revision__
147ndg.security.test.X509.__revision__
148ndg.security.test.XMLSecDoc.__revision__
149ndg.security.test.XMLSecDoc.xmlSecDocTest.__revision__
150ndg.security.test.__revision__
151ndg.security.test.attAuthority.AttAuthorityClientTest.__revision__
152ndg.security.test.attAuthority.__revision__
153ndg.security.test.attAuthority.attCertLog.__revision__
154ndg.security.test.attAuthority.ca.__revision__
155ndg.security.test.attAuthority.siteAServer.__revision__
156ndg.security.test.attAuthority.siteAUserRoles.__revision__
157ndg.security.test.attAuthority.siteBServer.__revision__
158ndg.security.test.attAuthority.siteBUserRoles.__revision__
159ndg.security.test.attCert.AttCertTest.__revision__
160ndg.security.test.attCert.__revision__
161ndg.security.test.authenservice.__revision__
162ndg.security.test.authenservice.test_authen_service.__revision__
163ndg.security.test.authz.pdp.testProftPDP.__revision__
164ndg.security.test.ca.__revision__
165ndg.security.test.ca.caClientTest.__revision__
166ndg.security.test.myProxy.MyProxyClientTest.__revision__
167ndg.security.test.myProxy.__revision__
168ndg.security.test.saml.__revision__
169ndg.security.test.sessionCookie.SessionCookieTest.__revision__
170ndg.security.test.sessionCookie.__revision__
171ndg.security.test.sessionMgr.__revision__
172ndg.security.test.sessionMgr.ca.__revision__
173ndg.security.test.sessionMgr.test.__revision__
174ndg.security.test.sessionMgrClient.SessionMgrClientTest.__revision__
175ndg.security.test.sessionMgrClient.__revision__
176ndg.security.test.sessionMgrClient.ca.__revision__
177ndg.security.test.sessionMgrClient.server.__revision__
178ndg.security.test.wsSecurity.__revision__
179ndg.security.test.wsSecurity.client.__revision__
180ndg.security.test.wsSecurity.server.__revision__
181ndg.security.test.xmlsec.__revision__
182ndg.security.test.xmlsec.dom.__revision__
183ndg.security.test.xmlsec.etree.test_etree.__revision__" class="py-name" href="#" onclick="return doclink('link-0', '__revision__', 'link-0');">__revision__</a></tt> <tt class="py-op">=</tt> <tt class="py-string">"$Id: __init__.py 4129 2008-08-20 13:03:20Z cbyrom $"</tt> </tt>
184<a name="L23"></a><tt class="py-lineno"> 23</tt>  <tt class="py-line"> </tt>
185<a name="L24"></a><tt class="py-lineno"> 24</tt>  <tt class="py-line"><tt class="py-name">__all__</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt> </tt>
186<a name="L25"></a><tt class="py-lineno"> 25</tt>  <tt class="py-line">    <tt class="py-string">'AttAuthorityClient'</tt><tt class="py-op">,</tt> </tt>
187<a name="L26"></a><tt class="py-lineno"> 26</tt>  <tt class="py-line">    <tt class="py-string">'AttAuthorityClientError'</tt><tt class="py-op">,</tt> </tt>
188<a name="L27"></a><tt class="py-lineno"> 27</tt>  <tt class="py-line">    <tt class="py-string">'AttributeRequestDenied'</tt><tt class="py-op">,</tt> </tt>
189<a name="L28"></a><tt class="py-lineno"> 28</tt>  <tt class="py-line">    <tt class="py-string">'NoTrustedHosts'</tt><tt class="py-op">,</tt><tt class="py-op">]</tt> </tt>
190<a name="L29"></a><tt class="py-lineno"> 29</tt>  <tt class="py-line"> </tt>
191<a name="L30"></a><tt class="py-lineno"> 30</tt>  <tt class="py-line"><tt class="py-comment"># Determine https http transport</tt> </tt>
192<a name="L31"></a><tt class="py-lineno"> 31</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-keyword">import</tt> <tt class="py-name">urlparse</tt><tt class="py-op">,</tt> <tt class="py-name">httplib</tt> </tt>
193<a name="L32"></a><tt class="py-lineno"> 32</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">ZSI</tt><tt class="py-op">.</tt><tt class="py-name">wstools</tt><tt class="py-op">.</tt><tt class="py-name">Utility</tt> <tt class="py-keyword">import</tt> <tt id="link-1" class="py-name" targets="Class httplib.HTTPResponse=httplib.HTTPResponse-class.html"><a title="httplib.HTTPResponse" class="py-name" href="#" onclick="return doclink('link-1', 'HTTPResponse', 'link-1');">HTTPResponse</a></tt> </tt>
194<a name="L33"></a><tt class="py-lineno"> 33</tt>  <tt class="py-line"> </tt>
195<a name="L34"></a><tt class="py-lineno"> 34</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-2" class="py-name" targets="Module ndg.security.common.AttAuthority.AttAuthority_services=ndg.security.common.AttAuthority.AttAuthority_services-module.html"><a title="ndg.security.common.AttAuthority.AttAuthority_services" class="py-name" href="#" onclick="return doclink('link-2', 'AttAuthority_services', 'link-2');">AttAuthority_services</a></tt> <tt class="py-keyword">import</tt> <tt id="link-3" class="py-name" targets="Class ndg.security.common.AttAuthority.AttAuthority_services.AttAuthorityServiceLocator=ndg.security.common.AttAuthority.AttAuthority_services.AttAuthorityServiceLocator-class.html"><a title="ndg.security.common.AttAuthority.AttAuthority_services.AttAuthorityServiceLocator" class="py-name" href="#" onclick="return doclink('link-3', 'AttAuthorityServiceLocator', 'link-3');">AttAuthorityServiceLocator</a></tt> </tt>
196<a name="L35"></a><tt class="py-lineno"> 35</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-4" class="py-name" targets="Package ndg=ndg-module.html,Class ndg.security.client.ssoclient.ssoclient.config.ssoClientMiddleware.ndg=ndg.security.client.ssoclient.ssoclient.config.ssoClientMiddleware.ndg-class.html,Package ndg.security.client.ssoclient.ssoclient.templates.ndg=ndg.security.client.ssoclient.ssoclient.templates.ndg-module.html,Package ndg.security.server.pylons.container.templates.bak.ndg=ndg.security.server.pylons.container.templates.bak.ndg-module.html,Package ndg.security.server.pylons.container.templates.ndg=ndg.security.server.pylons.container.templates.ndg-module.html,Class ndg.security.server.sso.sso.config.ssoServiceMiddleware.ndg=ndg.security.server.sso.sso.config.ssoServiceMiddleware.ndg-class.html,Package ndg.security.server.sso.sso.templates.ndg=ndg.security.server.sso.sso.templates.ndg-module.html"><a title="ndg
197ndg.security.client.ssoclient.ssoclient.config.ssoClientMiddleware.ndg
198ndg.security.client.ssoclient.ssoclient.templates.ndg
199ndg.security.server.pylons.container.templates.bak.ndg
200ndg.security.server.pylons.container.templates.ndg
201ndg.security.server.sso.sso.config.ssoServiceMiddleware.ndg
202ndg.security.server.sso.sso.templates.ndg" class="py-name" href="#" onclick="return doclink('link-4', 'ndg', 'link-4');">ndg</a></tt><tt class="py-op">.</tt><tt id="link-5" class="py-name" targets="Package ndg.security=ndg.security-module.html,Package ndg.security=ndg.security-module.html,Class ndg.security.client.ssoclient.ssoclient.config.ssoClientMiddleware.ndg.security=ndg.security.client.ssoclient.ssoclient.config.ssoClientMiddleware.ndg.security-class.html,Package ndg.security.client.ssoclient.ssoclient.templates.ndg.security=ndg.security.client.ssoclient.ssoclient.templates.ndg.security-module.html,Package ndg.security.server.pylons.container.templates.bak.ndg.security=ndg.security.server.pylons.container.templates.bak.ndg.security-module.html,Package ndg.security.server.pylons.container.templates.ndg.security=ndg.security.server.pylons.container.templates.ndg.security-module.html,Class ndg.security.server.sso.sso.config.ssoServiceMiddleware.ndg.security=ndg.security.server.sso.sso.config.ssoServiceMiddleware.ndg.security-class.html,Package ndg.security.server.sso.sso.templates.ndg.security=ndg.security.server.sso.sso.templates.ndg.security-module.html"><a title="ndg.security
203ndg.security
204ndg.security.client.ssoclient.ssoclient.config.ssoClientMiddleware.ndg.security
205ndg.security.client.ssoclient.ssoclient.templates.ndg.security
206ndg.security.server.pylons.container.templates.bak.ndg.security
207ndg.security.server.pylons.container.templates.ndg.security
208ndg.security.server.sso.sso.config.ssoServiceMiddleware.ndg.security
209ndg.security.server.sso.sso.templates.ndg.security" class="py-name" href="#" onclick="return doclink('link-5', 'security', 'link-5');">security</a></tt><tt class="py-op">.</tt><tt id="link-6" class="py-name" targets="Class ndg.security.client.ssoclient.ssoclient.config.ssoClientMiddleware.ndg.security.common=ndg.security.client.ssoclient.ssoclient.config.ssoClientMiddleware.ndg.security.common-class.html,Package ndg.security.common=ndg.security.common-module.html,Class ndg.security.server.sso.sso.config.ssoServiceMiddleware.ndg.security.common=ndg.security.server.sso.sso.config.ssoServiceMiddleware.ndg.security.common-class.html"><a title="ndg.security.client.ssoclient.ssoclient.config.ssoClientMiddleware.ndg.security.common
210ndg.security.common
211ndg.security.server.sso.sso.config.ssoServiceMiddleware.ndg.security.common" class="py-name" href="#" onclick="return doclink('link-6', 'common', 'link-6');">common</a></tt><tt class="py-op">.</tt><tt id="link-7" class="py-name" targets="Package ndg.security.common.wssecurity=ndg.security.common.wssecurity-module.html,Module ndg.security.server.wsgi.wssecurity=ndg.security.server.wsgi.wssecurity-module.html"><a title="ndg.security.common.wssecurity
212ndg.security.server.wsgi.wssecurity" class="py-name" href="#" onclick="return doclink('link-7', 'wssecurity', 'link-7');">wssecurity</a></tt><tt class="py-op">.</tt><tt id="link-8" class="py-name" targets="Module ndg.security.common.wssecurity.dom=ndg.security.common.wssecurity.dom-module.html,Module ndg.security.common.xmlsec.dom=ndg.security.common.xmlsec.dom-module.html,Package ndg.security.test.xmlsec.dom=ndg.security.test.xmlsec.dom-module.html"><a title="ndg.security.common.wssecurity.dom
213ndg.security.common.xmlsec.dom
214ndg.security.test.xmlsec.dom" class="py-name" href="#" onclick="return doclink('link-8', 'dom', 'link-8');">dom</a></tt> <tt class="py-keyword">import</tt> <tt id="link-9" class="py-name" targets="Class ndg.security.common.wssecurity.dom.SignatureHandler=ndg.security.common.wssecurity.dom.SignatureHandler-class.html,Class ndg.security.common.wssecurity.etree.SignatureHandler=ndg.security.common.wssecurity.etree.SignatureHandler-class.html"><a title="ndg.security.common.wssecurity.dom.SignatureHandler
215ndg.security.common.wssecurity.etree.SignatureHandler" class="py-name" href="#" onclick="return doclink('link-9', 'SignatureHandler', 'link-9');">SignatureHandler</a></tt> </tt>
216<a name="L36"></a><tt class="py-lineno"> 36</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-10" class="py-name"><a title="ndg
217ndg.security.client.ssoclient.ssoclient.config.ssoClientMiddleware.ndg
218ndg.security.client.ssoclient.ssoclient.templates.ndg
219ndg.security.server.pylons.container.templates.bak.ndg
220ndg.security.server.pylons.container.templates.ndg
221ndg.security.server.sso.sso.config.ssoServiceMiddleware.ndg
222ndg.security.server.sso.sso.templates.ndg" class="py-name" href="#" onclick="return doclink('link-10', 'ndg', 'link-4');">ndg</a></tt><tt class="py-op">.</tt><tt id="link-11" class="py-name"><a title="ndg.security
223ndg.security
224ndg.security.client.ssoclient.ssoclient.config.ssoClientMiddleware.ndg.security
225ndg.security.client.ssoclient.ssoclient.templates.ndg.security
226ndg.security.server.pylons.container.templates.bak.ndg.security
227ndg.security.server.pylons.container.templates.ndg.security
228ndg.security.server.sso.sso.config.ssoServiceMiddleware.ndg.security
229ndg.security.server.sso.sso.templates.ndg.security" class="py-name" href="#" onclick="return doclink('link-11', 'security', 'link-5');">security</a></tt><tt class="py-op">.</tt><tt id="link-12" class="py-name"><a title="ndg.security.client.ssoclient.ssoclient.config.ssoClientMiddleware.ndg.security.common
230ndg.security.common
231ndg.security.server.sso.sso.config.ssoServiceMiddleware.ndg.security.common" class="py-name" href="#" onclick="return doclink('link-12', 'common', 'link-6');">common</a></tt><tt class="py-op">.</tt><tt id="link-13" class="py-name" targets="Module ndg.security.common.AttCert=ndg.security.common.AttCert-module.html,Class ndg.security.common.AttCert.AttCert=ndg.security.common.AttCert.AttCert-class.html"><a title="ndg.security.common.AttCert
232ndg.security.common.AttCert.AttCert" class="py-name" href="#" onclick="return doclink('link-13', 'AttCert', 'link-13');">AttCert</a></tt> <tt class="py-keyword">import</tt> <tt id="link-14" class="py-name"><a title="ndg.security.common.AttCert
233ndg.security.common.AttCert.AttCert" class="py-name" href="#" onclick="return doclink('link-14', 'AttCert', 'link-13');">AttCert</a></tt><tt class="py-op">,</tt> <tt id="link-15" class="py-name" targets="Function ndg.security.common.AttCert.AttCertParse()=ndg.security.common.AttCert-module.html#AttCertParse"><a title="ndg.security.common.AttCert.AttCertParse" class="py-name" href="#" onclick="return doclink('link-15', 'AttCertParse', 'link-15');">AttCertParse</a></tt> </tt>
234<a name="L37"></a><tt class="py-lineno"> 37</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-16" class="py-name"><a title="ndg
235ndg.security.client.ssoclient.ssoclient.config.ssoClientMiddleware.ndg
236ndg.security.client.ssoclient.ssoclient.templates.ndg
237ndg.security.server.pylons.container.templates.bak.ndg
238ndg.security.server.pylons.container.templates.ndg
239ndg.security.server.sso.sso.config.ssoServiceMiddleware.ndg
240ndg.security.server.sso.sso.templates.ndg" class="py-name" href="#" onclick="return doclink('link-16', 'ndg', 'link-4');">ndg</a></tt><tt class="py-op">.</tt><tt id="link-17" class="py-name"><a title="ndg.security
241ndg.security
242ndg.security.client.ssoclient.ssoclient.config.ssoClientMiddleware.ndg.security
243ndg.security.client.ssoclient.ssoclient.templates.ndg.security
244ndg.security.server.pylons.container.templates.bak.ndg.security
245ndg.security.server.pylons.container.templates.ndg.security
246ndg.security.server.sso.sso.config.ssoServiceMiddleware.ndg.security
247ndg.security.server.sso.sso.templates.ndg.security" class="py-name" href="#" onclick="return doclink('link-17', 'security', 'link-5');">security</a></tt><tt class="py-op">.</tt><tt id="link-18" class="py-name"><a title="ndg.security.client.ssoclient.ssoclient.config.ssoClientMiddleware.ndg.security.common
248ndg.security.common
249ndg.security.server.sso.sso.config.ssoServiceMiddleware.ndg.security.common" class="py-name" href="#" onclick="return doclink('link-18', 'common', 'link-6');">common</a></tt><tt class="py-op">.</tt><tt id="link-19" class="py-name" targets="Module ndg.security.common.m2CryptoSSLUtility=ndg.security.common.m2CryptoSSLUtility-module.html"><a title="ndg.security.common.m2CryptoSSLUtility" class="py-name" href="#" onclick="return doclink('link-19', 'm2CryptoSSLUtility', 'link-19');">m2CryptoSSLUtility</a></tt> <tt class="py-keyword">import</tt> <tt id="link-20" class="py-name" targets="Class ndg.security.common.m2CryptoSSLUtility.HTTPSConnection=ndg.security.common.m2CryptoSSLUtility.HTTPSConnection-class.html"><a title="ndg.security.common.m2CryptoSSLUtility.HTTPSConnection" class="py-name" href="#" onclick="return doclink('link-20', 'HTTPSConnection', 'link-20');">HTTPSConnection</a></tt><tt class="py-op">,</tt> \ </tt>
250<a name="L38"></a><tt class="py-lineno"> 38</tt>  <tt class="py-line">    <tt id="link-21" class="py-name" targets="Class ndg.security.common.m2CryptoSSLUtility.HostCheck=ndg.security.common.m2CryptoSSLUtility.HostCheck-class.html"><a title="ndg.security.common.m2CryptoSSLUtility.HostCheck" class="py-name" href="#" onclick="return doclink('link-21', 'HostCheck', 'link-21');">HostCheck</a></tt> </tt>
251<a name="L39"></a><tt class="py-lineno"> 39</tt>  <tt class="py-line"> </tt>
252<a name="L40"></a><tt class="py-lineno"> 40</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-22" class="py-name"><a title="ndg
253ndg.security.client.ssoclient.ssoclient.config.ssoClientMiddleware.ndg
254ndg.security.client.ssoclient.ssoclient.templates.ndg
255ndg.security.server.pylons.container.templates.bak.ndg
256ndg.security.server.pylons.container.templates.ndg
257ndg.security.server.sso.sso.config.ssoServiceMiddleware.ndg
258ndg.security.server.sso.sso.templates.ndg" class="py-name" href="#" onclick="return doclink('link-22', 'ndg', 'link-4');">ndg</a></tt><tt class="py-op">.</tt><tt id="link-23" class="py-name"><a title="ndg.security
259ndg.security
260ndg.security.client.ssoclient.ssoclient.config.ssoClientMiddleware.ndg.security
261ndg.security.client.ssoclient.ssoclient.templates.ndg.security
262ndg.security.server.pylons.container.templates.bak.ndg.security
263ndg.security.server.pylons.container.templates.ndg.security
264ndg.security.server.sso.sso.config.ssoServiceMiddleware.ndg.security
265ndg.security.server.sso.sso.templates.ndg.security" class="py-name" href="#" onclick="return doclink('link-23', 'security', 'link-5');">security</a></tt><tt class="py-op">.</tt><tt id="link-24" class="py-name"><a title="ndg.security.client.ssoclient.ssoclient.config.ssoClientMiddleware.ndg.security.common
266ndg.security.common
267ndg.security.server.sso.sso.config.ssoServiceMiddleware.ndg.security.common" class="py-name" href="#" onclick="return doclink('link-24', 'common', 'link-6');">common</a></tt><tt class="py-op">.</tt><tt id="link-25" class="py-name" targets="Package ndg.security.common.zsi_utils=ndg.security.common.zsi_utils-module.html"><a title="ndg.security.common.zsi_utils" class="py-name" href="#" onclick="return doclink('link-25', 'zsi_utils', 'link-25');">zsi_utils</a></tt><tt class="py-op">.</tt><tt id="link-26" class="py-name" targets="Module ndg.security.common.zsi_utils.httpproxy=ndg.security.common.zsi_utils.httpproxy-module.html"><a title="ndg.security.common.zsi_utils.httpproxy" class="py-name" href="#" onclick="return doclink('link-26', 'httpproxy', 'link-26');">httpproxy</a></tt> <tt class="py-keyword">import</tt> <tt id="link-27" class="py-name" targets="Class ndg.security.common.zsi_utils.httpproxy.ProxyHTTPConnection=ndg.security.common.zsi_utils.httpproxy.ProxyHTTPConnection-class.html"><a title="ndg.security.common.zsi_utils.httpproxy.ProxyHTTPConnection" class="py-name" href="#" onclick="return doclink('link-27', 'ProxyHTTPConnection', 'link-27');">ProxyHTTPConnection</a></tt> </tt>
268<a name="L41"></a><tt class="py-lineno"> 41</tt>  <tt class="py-line"> </tt>
269<a name="L42"></a><tt class="py-lineno"> 42</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">logging</tt> </tt>
270<a name="L43"></a><tt class="py-lineno"> 43</tt>  <tt class="py-line"><tt id="link-28" class="py-name" targets="Variable ndg.security.client.ssoclient.ssoclient.config.ssoClientMiddleware.log=ndg.security.client.ssoclient.ssoclient.config.ssoClientMiddleware-module.html#log,Variable ndg.security.client.ssoclient.ssoclient.controllers.logout.log=ndg.security.client.ssoclient.ssoclient.controllers.logout-module.html#log,Variable ndg.security.client.ssoclient.ssoclient.controllers.test1.log=ndg.security.client.ssoclient.ssoclient.controllers.test1-module.html#log,Variable ndg.security.client.ssoclient.ssoclient.lib.base.log=ndg.security.client.ssoclient.ssoclient.lib.base-module.html#log,Variable ndg.security.client.ssoclient.ssoclient.websetup.log=ndg.security.client.ssoclient.ssoclient.websetup-module.html#log,Variable ndg.security.common.AttAuthority.log=ndg.security.common.AttAuthority-module.html#log,Variable ndg.security.common.CredWallet.log=ndg.security.common.CredWallet-module.html#log,Variable ndg.security.common.SessionMgr.log=ndg.security.common.SessionMgr-module.html#log,Variable ndg.security.common.authz.pdp.browse.log=ndg.security.common.authz.pdp.browse-module.html#log,Variable ndg.security.common.authz.pdp.log=ndg.security.common.authz.pdp-module.html#log,Variable ndg.security.common.authz.pdp.proftp.log=ndg.security.common.authz.pdp.proftp-module.html#log,Variable ndg.security.common.authz.pep.log=ndg.security.common.authz.pep-module.html#log,Variable ndg.security.common.gatekeeper.log=ndg.security.common.gatekeeper-module.html#log,Class ndg.security.common.logService.log_services_server.log=ndg.security.common.logService.log_services_server.log-class.html,Variable ndg.security.common.pylons.security_util.log=ndg.security.common.pylons.security_util-module.html#log,Variable ndg.security.common.saml.log=ndg.security.common.saml-module.html#log,Variable ndg.security.common.utils.ClassFactory.log=ndg.security.common.utils.ClassFactory-module.html#log,Variable ndg.security.common.utils.ConfigFileParsers.log=ndg.security.common.utils.ConfigFileParsers-module.html#log,Variable ndg.security.common.wssecurity.BaseSignatureHandler.log=ndg.security.common.wssecurity.BaseSignatureHandler-module.html#log,Variable ndg.security.common.wssecurity.dom.log=ndg.security.common.wssecurity.dom-module.html#log,Variable ndg.security.common.wssecurity.etree.log=ndg.security.common.wssecurity.etree-module.html#log,Variable ndg.security.common.xmlsec.etree.log=ndg.security.common.xmlsec.etree-module.html#log,Variable ndg.security.server.AttAuthority.log=ndg.security.server.AttAuthority-module.html#log,Variable ndg.security.server.Log.log=ndg.security.server.Log-module.html#log,Variable ndg.security.server.SessionMgr.log=ndg.security.server.SessionMgr-module.html#log,Package ndg.security.server.log=ndg.security.server.log-module.html,Variable ndg.security.server.pylons.container.controllers.hello.log=ndg.security.server.pylons.container.controllers.hello-module.html#log,Variable ndg.security.server.pylons.container.lib.openid_provider_util.log=ndg.security.server.pylons.container.lib.openid_provider_util-module.html#log,Variable ndg.security.server.pylons.container.websetup.log=ndg.security.server.pylons.container.websetup-module.html#log,Variable ndg.security.server.sso.sso.config.middleware.log=ndg.security.server.sso.sso.config.middleware-module.html#log,Variable ndg.security.server.sso.sso.config.ssoServiceMiddleware.log=ndg.security.server.sso.sso.config.ssoServiceMiddleware-module.html#log,Variable ndg.security.server.sso.sso.controllers.login.log=ndg.security.server.sso.sso.controllers.login-module.html#log,Variable ndg.security.server.sso.sso.controllers.logout.log=ndg.security.server.sso.sso.controllers.logout-module.html#log,Variable ndg.security.server.sso.sso.controllers.test1.log=ndg.security.server.sso.sso.controllers.test1-module.html#log,Variable ndg.security.server.sso.sso.controllers.wayf.log=ndg.security.server.sso.sso.controllers.wayf-module.html#log,Variable ndg.security.server.sso.sso.lib.base.log=ndg.security.server.sso.sso.lib.base-module.html#log,Variable ndg.security.server.sso.sso.lib.openid_util.log=ndg.security.server.sso.sso.lib.openid_util-module.html#log,Variable ndg.security.server.sso.sso.websetup.log=ndg.security.server.sso.sso.websetup-module.html#log,Variable ndg.security.server.wsgi.openid_provider.log=ndg.security.server.wsgi.openid_provider-module.html#log,Variable ndg.security.server.wsgi.soap.log=ndg.security.server.wsgi.soap-module.html#log,Variable ndg.security.server.wsgi.wssecurity.log=ndg.security.server.wsgi.wssecurity-module.html#log,Variable ndg.security.server.zsi.attributeauthority.log=ndg.security.server.zsi.attributeauthority-module.html#log,Variable ndg.security.test.Log.LogTest.log=ndg.security.test.Log.LogTest-module.html#log,Variable ndg.security.test.authenservice.test_authen_service.log=ndg.security.test.authenservice.test_authen_service-module.html#log,Variable ndg.security.test.wsSecurity.server.echoServer.log=ndg.security.test.wsSecurity.server.echoServer-module.html#log,Variable ndg.security.test.xmlsec.etree.test_etree.log=ndg.security.test.xmlsec.etree.test_etree-module.html#log"><a title="ndg.security.client.ssoclient.ssoclient.config.ssoClientMiddleware.log
271ndg.security.client.ssoclient.ssoclient.controllers.logout.log
272ndg.security.client.ssoclient.ssoclient.controllers.test1.log
273ndg.security.client.ssoclient.ssoclient.lib.base.log
274ndg.security.client.ssoclient.ssoclient.websetup.log
275ndg.security.common.AttAuthority.log
276ndg.security.common.CredWallet.log
277ndg.security.common.SessionMgr.log
278ndg.security.common.authz.pdp.browse.log
279ndg.security.common.authz.pdp.log
280ndg.security.common.authz.pdp.proftp.log
281ndg.security.common.authz.pep.log
282ndg.security.common.gatekeeper.log
283ndg.security.common.logService.log_services_server.log
284ndg.security.common.pylons.security_util.log
285ndg.security.common.saml.log
286ndg.security.common.utils.ClassFactory.log
287ndg.security.common.utils.ConfigFileParsers.log
288ndg.security.common.wssecurity.BaseSignatureHandler.log
289ndg.security.common.wssecurity.dom.log
290ndg.security.common.wssecurity.etree.log
291ndg.security.common.xmlsec.etree.log
292ndg.security.server.AttAuthority.log
293ndg.security.server.Log.log
294ndg.security.server.SessionMgr.log
295ndg.security.server.log
296ndg.security.server.pylons.container.controllers.hello.log
297ndg.security.server.pylons.container.lib.openid_provider_util.log
298ndg.security.server.pylons.container.websetup.log
299ndg.security.server.sso.sso.config.middleware.log
300ndg.security.server.sso.sso.config.ssoServiceMiddleware.log
301ndg.security.server.sso.sso.controllers.login.log
302ndg.security.server.sso.sso.controllers.logout.log
303ndg.security.server.sso.sso.controllers.test1.log
304ndg.security.server.sso.sso.controllers.wayf.log
305ndg.security.server.sso.sso.lib.base.log
306ndg.security.server.sso.sso.lib.openid_util.log
307ndg.security.server.sso.sso.websetup.log
308ndg.security.server.wsgi.openid_provider.log
309ndg.security.server.wsgi.soap.log
310ndg.security.server.wsgi.wssecurity.log
311ndg.security.server.zsi.attributeauthority.log
312ndg.security.test.Log.LogTest.log
313ndg.security.test.authenservice.test_authen_service.log
314ndg.security.test.wsSecurity.server.echoServer.log
315ndg.security.test.xmlsec.etree.test_etree.log" class="py-name" href="#" onclick="return doclink('link-28', 'log', 'link-28');">log</a></tt> <tt class="py-op">=</tt> <tt class="py-name">logging</tt><tt class="py-op">.</tt><tt class="py-name">getLogger</tt><tt class="py-op">(</tt><tt class="py-name">__name__</tt><tt class="py-op">)</tt> </tt>
316<a name="L44"></a><tt class="py-lineno"> 44</tt>  <tt class="py-line"> </tt>
317<a name="L45"></a><tt class="py-lineno"> 45</tt>  <tt class="py-line"><tt class="py-comment">#_____________________________________________________________________________</tt> </tt>
318<a name="AttAuthorityClientError"></a><div id="AttAuthorityClientError-def"><a name="L46"></a><tt class="py-lineno"> 46</tt> <a class="py-toggle" href="#" id="AttAuthorityClientError-toggle" onclick="return toggle('AttAuthorityClientError');">-</a><tt class="py-line"><tt class="py-comment"></tt><tt class="py-keyword">class</tt> <a class="py-def-name" href="ndg.security.common.AttAuthority.AttAuthorityClientError-class.html">AttAuthorityClientError</a><tt class="py-op">(</tt><tt class="py-base-class">Exception</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
319</div><div id="AttAuthorityClientError-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="AttAuthorityClientError-expanded"><a name="L47"></a><tt class="py-lineno"> 47</tt>  <tt class="py-line">    <tt class="py-docstring">"""Exception handling for AttributeAuthorityClient class"""</tt> </tt>
320</div><a name="L48"></a><tt class="py-lineno"> 48</tt>  <tt class="py-line"> </tt>
321<a name="AttributeRequestDenied"></a><div id="AttributeRequestDenied-def"><a name="L49"></a><tt class="py-lineno"> 49</tt> <a class="py-toggle" href="#" id="AttributeRequestDenied-toggle" onclick="return toggle('AttributeRequestDenied');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="ndg.security.common.AttAuthority.AttributeRequestDenied-class.html">AttributeRequestDenied</a><tt class="py-op">(</tt><tt class="py-base-class">Exception</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
322</div><div id="AttributeRequestDenied-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="AttributeRequestDenied-expanded"><a name="L50"></a><tt class="py-lineno"> 50</tt>  <tt class="py-line">    <tt class="py-docstring">"""Raise when a getAttCert call to the AA is denied"""</tt> </tt>
323</div><a name="L51"></a><tt class="py-lineno"> 51</tt>  <tt class="py-line"> </tt>
324<a name="NoTrustedHosts"></a><div id="NoTrustedHosts-def"><a name="L52"></a><tt class="py-lineno"> 52</tt> <a class="py-toggle" href="#" id="NoTrustedHosts-toggle" onclick="return toggle('NoTrustedHosts');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="ndg.security.common.AttAuthority.NoTrustedHosts-class.html">NoTrustedHosts</a><tt class="py-op">(</tt><tt class="py-base-class">AttAuthorityClientError</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
325</div><div id="NoTrustedHosts-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="NoTrustedHosts-expanded"><a name="L53"></a><tt class="py-lineno"> 53</tt>  <tt class="py-line">    <tt class="py-docstring">"""Raise from getTrustedHosts if there are no trusted hosts defined in</tt> </tt>
326<a name="L54"></a><tt class="py-lineno"> 54</tt>  <tt class="py-line"><tt class="py-docstring">    the map configuration"""</tt> </tt>
327</div><a name="L55"></a><tt class="py-lineno"> 55</tt>  <tt class="py-line"> </tt>
328<a name="NoMatchingRoleInTrustedHosts"></a><div id="NoMatchingRoleInTrustedHosts-def"><a name="L56"></a><tt class="py-lineno"> 56</tt> <a class="py-toggle" href="#" id="NoMatchingRoleInTrustedHosts-toggle" onclick="return toggle('NoMatchingRoleInTrustedHosts');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="ndg.security.common.AttAuthority.NoMatchingRoleInTrustedHosts-class.html">NoMatchingRoleInTrustedHosts</a><tt class="py-op">(</tt><tt class="py-base-class">AttAuthorityClientError</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
329</div><div id="NoMatchingRoleInTrustedHosts-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="NoMatchingRoleInTrustedHosts-expanded"><a name="L57"></a><tt class="py-lineno"> 57</tt>  <tt class="py-line">    <tt class="py-docstring">"""Raise from getTrustedHosts if there is no mapping to any of the </tt> </tt>
330<a name="L58"></a><tt class="py-lineno"> 58</tt>  <tt class="py-line"><tt class="py-docstring">    trusted hosts for the given input role name"""</tt> </tt>
331</div><a name="L59"></a><tt class="py-lineno"> 59</tt>  <tt class="py-line"> </tt>
332<a name="L60"></a><tt class="py-lineno"> 60</tt>  <tt class="py-line"><tt class="py-comment">#_____________________________________________________________________________</tt> </tt>
333<a name="AttAuthorityClient"></a><div id="AttAuthorityClient-def"><a name="L61"></a><tt class="py-lineno"> 61</tt> <a class="py-toggle" href="#" id="AttAuthorityClient-toggle" onclick="return toggle('AttAuthorityClient');">-</a><tt class="py-line"><tt class="py-comment"></tt><tt class="py-keyword">class</tt> <a class="py-def-name" href="ndg.security.common.AttAuthority.AttAuthorityClient-class.html">AttAuthorityClient</a><tt class="py-op">(</tt><tt class="py-base-class">object</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
334</div><div id="AttAuthorityClient-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="AttAuthorityClient-expanded"><a name="L62"></a><tt class="py-lineno"> 62</tt>  <tt class="py-line">    <tt class="py-docstring">"""Client interface to Attribute Authority web service</tt> </tt>
335<a name="L63"></a><tt class="py-lineno"> 63</tt>  <tt class="py-line"><tt class="py-docstring">    </tt> </tt>
336<a name="L64"></a><tt class="py-lineno"> 64</tt>  <tt class="py-line"><tt class="py-docstring">    @type excepMap: dict</tt> </tt>
337<a name="L65"></a><tt class="py-lineno"> 65</tt>  <tt class="py-line"><tt class="py-docstring">    @cvar excepMap: map exception strings returned from SOAP fault to client</tt> </tt>
338<a name="L66"></a><tt class="py-lineno"> 66</tt>  <tt class="py-line"><tt class="py-docstring">    Exception class to call"""</tt> </tt>
339<a name="L67"></a><tt class="py-lineno"> 67</tt>  <tt class="py-line">     </tt>
340<a name="L68"></a><tt class="py-lineno"> 68</tt>  <tt class="py-line">    <tt id="link-29" class="py-name" targets="Variable ndg.security.common.AttAuthority.AttAuthorityClient.excepMap=ndg.security.common.AttAuthority.AttAuthorityClient-class.html#excepMap,Variable ndg.security.common.SessionMgr.SessionMgrClient.excepMap=ndg.security.common.SessionMgr.SessionMgrClient-class.html#excepMap"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.excepMap
341ndg.security.common.SessionMgr.SessionMgrClient.excepMap" class="py-name" href="#" onclick="return doclink('link-29', 'excepMap', 'link-29');">excepMap</a></tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt> </tt>
342<a name="L69"></a><tt class="py-lineno"> 69</tt>  <tt class="py-line">        <tt class="py-string">'AttAuthorityNoTrustedHosts'</tt><tt class="py-op">:</tt> <tt id="link-30" class="py-name" targets="Class ndg.security.common.AttAuthority.NoTrustedHosts=ndg.security.common.AttAuthority.NoTrustedHosts-class.html"><a title="ndg.security.common.AttAuthority.NoTrustedHosts" class="py-name" href="#" onclick="return doclink('link-30', 'NoTrustedHosts', 'link-30');">NoTrustedHosts</a></tt><tt class="py-op">,</tt> </tt>
343<a name="L70"></a><tt class="py-lineno"> 70</tt>  <tt class="py-line">        <tt class="py-string">'AttAuthorityNoMatchingRoleInTrustedHosts'</tt><tt class="py-op">:</tt> <tt id="link-31" class="py-name" targets="Class ndg.security.common.AttAuthority.NoMatchingRoleInTrustedHosts=ndg.security.common.AttAuthority.NoMatchingRoleInTrustedHosts-class.html"><a title="ndg.security.common.AttAuthority.NoMatchingRoleInTrustedHosts" class="py-name" href="#" onclick="return doclink('link-31', 'NoMatchingRoleInTrustedHosts', 'link-31');">NoMatchingRoleInTrustedHosts</a></tt> </tt>
344<a name="L71"></a><tt class="py-lineno"> 71</tt>  <tt class="py-line">        <tt class="py-op">}</tt> </tt>
345<a name="L72"></a><tt class="py-lineno"> 72</tt>  <tt class="py-line">     </tt>
346<a name="L73"></a><tt class="py-lineno"> 73</tt>  <tt class="py-line">    <tt class="py-comment">#_________________________________________________________________________</tt> </tt>
347<a name="AttAuthorityClient.__init__"></a><div id="AttAuthorityClient.__init__-def"><a name="L74"></a><tt class="py-lineno"> 74</tt> <a class="py-toggle" href="#" id="AttAuthorityClient.__init__-toggle" onclick="return toggle('AttAuthorityClient.__init__');">-</a><tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">def</tt> <a class="py-def-name" href="ndg.security.common.AttAuthority.AttAuthorityClient-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt>  </tt>
348<a name="L75"></a><tt class="py-lineno"> 75</tt>  <tt class="py-line">                 <tt class="py-param">uri</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt>  </tt>
349<a name="L76"></a><tt class="py-lineno"> 76</tt>  <tt class="py-line">                 <tt class="py-param">tracefile</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> </tt>
350<a name="L77"></a><tt class="py-lineno"> 77</tt>  <tt class="py-line">                 <tt class="py-param">httpProxyHost</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> </tt>
351<a name="L78"></a><tt class="py-lineno"> 78</tt>  <tt class="py-line">                 <tt class="py-param">noHttpProxyList</tt><tt class="py-op">=</tt><tt class="py-name">False</tt><tt class="py-op">,</tt> </tt>
352<a name="L79"></a><tt class="py-lineno"> 79</tt>  <tt class="py-line">                 <tt class="py-param">sslCACertList</tt><tt class="py-op">=</tt><tt class="py-op">[</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> </tt>
353<a name="L80"></a><tt class="py-lineno"> 80</tt>  <tt class="py-line">                 <tt class="py-param">sslCACertFilePathList</tt><tt class="py-op">=</tt><tt class="py-op">[</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> </tt>
354<a name="L81"></a><tt class="py-lineno"> 81</tt>  <tt class="py-line">                 <tt class="py-param">sslPeerCertCN</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt>  </tt>
355<a name="L82"></a><tt class="py-lineno"> 82</tt>  <tt class="py-line">                 <tt class="py-param">setSignatureHandler</tt><tt class="py-op">=</tt><tt class="py-name">True</tt><tt class="py-op">,</tt> </tt>
356<a name="L83"></a><tt class="py-lineno"> 83</tt>  <tt class="py-line">                 <tt class="py-op">**</tt><tt class="py-param">signatureHandlerKw</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
357</div><div id="AttAuthorityClient.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="AttAuthorityClient.__init__-expanded"><a name="L84"></a><tt class="py-lineno"> 84</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
358<a name="L85"></a><tt class="py-lineno"> 85</tt>  <tt class="py-line"><tt class="py-docstring">        @type uri: string</tt> </tt>
359<a name="L86"></a><tt class="py-lineno"> 86</tt>  <tt class="py-line"><tt class="py-docstring">        @param uri: URI for Attribute Authority WS.  Setting it will also</tt> </tt>
360<a name="L87"></a><tt class="py-lineno"> 87</tt>  <tt class="py-line"><tt class="py-docstring">        initialise the Service Proxy</tt> </tt>
361<a name="L88"></a><tt class="py-lineno"> 88</tt>  <tt class="py-line"><tt class="py-docstring">                                         </tt> </tt>
362<a name="L89"></a><tt class="py-lineno"> 89</tt>  <tt class="py-line"><tt class="py-docstring">        @param tracefile: set to file object such as sys.stderr to give </tt> </tt>
363<a name="L90"></a><tt class="py-lineno"> 90</tt>  <tt class="py-line"><tt class="py-docstring">        extra WS debug information</tt> </tt>
364<a name="L91"></a><tt class="py-lineno"> 91</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
365<a name="L92"></a><tt class="py-lineno"> 92</tt>  <tt class="py-line"><tt class="py-docstring">        @type sslCACertList: list</tt> </tt>
366<a name="L93"></a><tt class="py-lineno"> 93</tt>  <tt class="py-line"><tt class="py-docstring">        @param sslCACertList: This keyword is for use with SSL connections </tt> </tt>
367<a name="L94"></a><tt class="py-lineno"> 94</tt>  <tt class="py-line"><tt class="py-docstring">        only.  Set a list of one ore more CA certificates.  The peer cert.</tt> </tt>
368<a name="L95"></a><tt class="py-lineno"> 95</tt>  <tt class="py-line"><tt class="py-docstring">        must verify against at least one of these otherwise the connection</tt> </tt>
369<a name="L96"></a><tt class="py-lineno"> 96</tt>  <tt class="py-line"><tt class="py-docstring">        is dropped.</tt> </tt>
370<a name="L97"></a><tt class="py-lineno"> 97</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
371<a name="L98"></a><tt class="py-lineno"> 98</tt>  <tt class="py-line"><tt class="py-docstring">        @type sslCACertFilePathList: list</tt> </tt>
372<a name="L99"></a><tt class="py-lineno"> 99</tt>  <tt class="py-line"><tt class="py-docstring">        @param sslCACertFilePathList: the same as the above except CA certs</tt> </tt>
373<a name="L100"></a><tt class="py-lineno">100</tt>  <tt class="py-line"><tt class="py-docstring">        can be passed as a list of file paths to read from</tt> </tt>
374<a name="L101"></a><tt class="py-lineno">101</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
375<a name="L102"></a><tt class="py-lineno">102</tt>  <tt class="py-line"><tt class="py-docstring">        @type sslPeerCertCN: string</tt> </tt>
376<a name="L103"></a><tt class="py-lineno">103</tt>  <tt class="py-line"><tt class="py-docstring">        @param sslPeerCertCN: set an alternate CommonName to match with peer</tt> </tt>
377<a name="L104"></a><tt class="py-lineno">104</tt>  <tt class="py-line"><tt class="py-docstring">        cert.  This keyword is for use with SSL connections only.</tt> </tt>
378<a name="L105"></a><tt class="py-lineno">105</tt>  <tt class="py-line"><tt class="py-docstring">                     </tt> </tt>
379<a name="L106"></a><tt class="py-lineno">106</tt>  <tt class="py-line"><tt class="py-docstring">        @type setSignatureHandler: bool</tt> </tt>
380<a name="L107"></a><tt class="py-lineno">107</tt>  <tt class="py-line"><tt class="py-docstring">        @param setSignatureHandler: flag to determine whether to apply</tt> </tt>
381<a name="L108"></a><tt class="py-lineno">108</tt>  <tt class="py-line"><tt class="py-docstring">        WS-Security Signature Handler or not</tt> </tt>
382<a name="L109"></a><tt class="py-lineno">109</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
383<a name="L110"></a><tt class="py-lineno">110</tt>  <tt class="py-line"><tt class="py-docstring">        @type signatureHandlerKw: dict</tt> </tt>
384<a name="L111"></a><tt class="py-lineno">111</tt>  <tt class="py-line"><tt class="py-docstring">        @param signatureHandlerKw: keywords to configure signature handler"""</tt> </tt>
385<a name="L112"></a><tt class="py-lineno">112</tt>  <tt class="py-line"> </tt>
386<a name="L113"></a><tt class="py-lineno">113</tt>  <tt class="py-line">        <tt id="link-32" class="py-name"><a title="ndg.security.client.ssoclient.ssoclient.config.ssoClientMiddleware.log
387ndg.security.client.ssoclient.ssoclient.controllers.logout.log
388ndg.security.client.ssoclient.ssoclient.controllers.test1.log
389ndg.security.client.ssoclient.ssoclient.lib.base.log
390ndg.security.client.ssoclient.ssoclient.websetup.log
391ndg.security.common.AttAuthority.log
392ndg.security.common.CredWallet.log
393ndg.security.common.SessionMgr.log
394ndg.security.common.authz.pdp.browse.log
395ndg.security.common.authz.pdp.log
396ndg.security.common.authz.pdp.proftp.log
397ndg.security.common.authz.pep.log
398ndg.security.common.gatekeeper.log
399ndg.security.common.logService.log_services_server.log
400ndg.security.common.pylons.security_util.log
401ndg.security.common.saml.log
402ndg.security.common.utils.ClassFactory.log
403ndg.security.common.utils.ConfigFileParsers.log
404ndg.security.common.wssecurity.BaseSignatureHandler.log
405ndg.security.common.wssecurity.dom.log
406ndg.security.common.wssecurity.etree.log
407ndg.security.common.xmlsec.etree.log
408ndg.security.server.AttAuthority.log
409ndg.security.server.Log.log
410ndg.security.server.SessionMgr.log
411ndg.security.server.log
412ndg.security.server.pylons.container.controllers.hello.log
413ndg.security.server.pylons.container.lib.openid_provider_util.log
414ndg.security.server.pylons.container.websetup.log
415ndg.security.server.sso.sso.config.middleware.log
416ndg.security.server.sso.sso.config.ssoServiceMiddleware.log
417ndg.security.server.sso.sso.controllers.login.log
418ndg.security.server.sso.sso.controllers.logout.log
419ndg.security.server.sso.sso.controllers.test1.log
420ndg.security.server.sso.sso.controllers.wayf.log
421ndg.security.server.sso.sso.lib.base.log
422ndg.security.server.sso.sso.lib.openid_util.log
423ndg.security.server.sso.sso.websetup.log
424ndg.security.server.wsgi.openid_provider.log
425ndg.security.server.wsgi.soap.log
426ndg.security.server.wsgi.wssecurity.log
427ndg.security.server.zsi.attributeauthority.log
428ndg.security.test.Log.LogTest.log
429ndg.security.test.authenservice.test_authen_service.log
430ndg.security.test.wsSecurity.server.echoServer.log
431ndg.security.test.xmlsec.etree.test_etree.log" class="py-name" href="#" onclick="return doclink('link-32', 'log', 'link-28');">log</a></tt><tt class="py-op">.</tt><tt id="link-33" class="py-name" targets="Method ndg.security.client.LogClient.LogClient.debug()=ndg.security.client.LogClient.LogClient-class.html#debug,Method ndg.security.common.logService.log_services.logBindingSOAP.debug()=ndg.security.common.logService.log_services.logBindingSOAP-class.html#debug"><a title="ndg.security.client.LogClient.LogClient.debug
432ndg.security.common.logService.log_services.logBindingSOAP.debug" class="py-name" href="#" onclick="return doclink('link-33', 'debug', 'link-33');">debug</a></tt><tt class="py-op">(</tt><tt class="py-string">"AttAuthorityClient.__init__ ..."</tt><tt class="py-op">)</tt> </tt>
433<a name="L114"></a><tt class="py-lineno">114</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__srv</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
434<a name="L115"></a><tt class="py-lineno">115</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__uri</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
435<a name="L116"></a><tt class="py-lineno">116</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_transdict</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt>         </tt>
436<a name="L117"></a><tt class="py-lineno">117</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_transport</tt> <tt class="py-op">=</tt> <tt id="link-34" class="py-name"><a title="ndg.security.common.zsi_utils.httpproxy.ProxyHTTPConnection" class="py-name" href="#" onclick="return doclink('link-34', 'ProxyHTTPConnection', 'link-27');">ProxyHTTPConnection</a></tt> </tt>
437<a name="L118"></a><tt class="py-lineno">118</tt>  <tt class="py-line">         </tt>
438<a name="L119"></a><tt class="py-lineno">119</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt id="link-35" class="py-name" targets="Variable ndg.security.client.LogClient.LogClient.uri=ndg.security.client.LogClient.LogClient-class.html#uri,Variable ndg.security.common.AttAuthority.AttAuthorityClient.uri=ndg.security.common.AttAuthority.AttAuthorityClient-class.html#uri,Variable ndg.security.common.SessionMgr.SessionMgrClient.uri=ndg.security.common.SessionMgr.SessionMgrClient-class.html#uri,Variable ndg.security.common.ca.CertificateAuthorityClient.uri=ndg.security.common.ca.CertificateAuthorityClient-class.html#uri"><a title="ndg.security.client.LogClient.LogClient.uri
439ndg.security.common.AttAuthority.AttAuthorityClient.uri
440ndg.security.common.SessionMgr.SessionMgrClient.uri
441ndg.security.common.ca.CertificateAuthorityClient.uri" class="py-name" href="#" onclick="return doclink('link-35', 'uri', 'link-35');">uri</a></tt><tt class="py-op">:</tt> </tt>
442<a name="L120"></a><tt class="py-lineno">120</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-36" class="py-name" targets="Method ndg.security.common.AttAuthority.AttAuthorityClient.__setURI()=ndg.security.common.AttAuthority.AttAuthorityClient-class.html#__setURI,Method ndg.security.common.SessionMgr.SessionMgrClient.__setURI()=ndg.security.common.SessionMgr.SessionMgrClient-class.html#__setURI,Method ndg.security.common.ca.CertificateAuthorityClient.__setURI()=ndg.security.common.ca.CertificateAuthorityClient-class.html#__setURI"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.__setURI
443ndg.security.common.SessionMgr.SessionMgrClient.__setURI
444ndg.security.common.ca.CertificateAuthorityClient.__setURI" class="py-name" href="#" onclick="return doclink('link-36', '__setURI', 'link-36');">__setURI</a></tt><tt class="py-op">(</tt><tt id="link-37" class="py-name"><a title="ndg.security.client.LogClient.LogClient.uri
445ndg.security.common.AttAuthority.AttAuthorityClient.uri
446ndg.security.common.SessionMgr.SessionMgrClient.uri
447ndg.security.common.ca.CertificateAuthorityClient.uri" class="py-name" href="#" onclick="return doclink('link-37', 'uri', 'link-35');">uri</a></tt><tt class="py-op">)</tt> </tt>
448<a name="L121"></a><tt class="py-lineno">121</tt>  <tt class="py-line"> </tt>
449<a name="L122"></a><tt class="py-lineno">122</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-38" class="py-name" targets="Method ndg.security.common.AttAuthority.AttAuthorityClient.__setHTTPProxyHost()=ndg.security.common.AttAuthority.AttAuthorityClient-class.html#__setHTTPProxyHost,Method ndg.security.common.SessionMgr.SessionMgrClient.__setHTTPProxyHost()=ndg.security.common.SessionMgr.SessionMgrClient-class.html#__setHTTPProxyHost"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.__setHTTPProxyHost
450ndg.security.common.SessionMgr.SessionMgrClient.__setHTTPProxyHost" class="py-name" href="#" onclick="return doclink('link-38', '__setHTTPProxyHost', 'link-38');">__setHTTPProxyHost</a></tt><tt class="py-op">(</tt><tt id="link-39" class="py-name" targets="Variable ndg.security.common.AttAuthority.AttAuthorityClient.httpProxyHost=ndg.security.common.AttAuthority.AttAuthorityClient-class.html#httpProxyHost,Variable ndg.security.common.SessionMgr.SessionMgrClient.httpProxyHost=ndg.security.common.SessionMgr.SessionMgrClient-class.html#httpProxyHost"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.httpProxyHost
451ndg.security.common.SessionMgr.SessionMgrClient.httpProxyHost" class="py-name" href="#" onclick="return doclink('link-39', 'httpProxyHost', 'link-39');">httpProxyHost</a></tt><tt class="py-op">)</tt> </tt>
452<a name="L123"></a><tt class="py-lineno">123</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-40" class="py-name" targets="Method ndg.security.common.AttAuthority.AttAuthorityClient.__setNoHttpProxyList()=ndg.security.common.AttAuthority.AttAuthorityClient-class.html#__setNoHttpProxyList,Method ndg.security.common.SessionMgr.SessionMgrClient.__setNoHttpProxyList()=ndg.security.common.SessionMgr.SessionMgrClient-class.html#__setNoHttpProxyList"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.__setNoHttpProxyList
453ndg.security.common.SessionMgr.SessionMgrClient.__setNoHttpProxyList" class="py-name" href="#" onclick="return doclink('link-40', '__setNoHttpProxyList', 'link-40');">__setNoHttpProxyList</a></tt><tt class="py-op">(</tt><tt id="link-41" class="py-name" targets="Variable ndg.security.common.AttAuthority.AttAuthorityClient.noHttpProxyList=ndg.security.common.AttAuthority.AttAuthorityClient-class.html#noHttpProxyList,Variable ndg.security.common.SessionMgr.SessionMgrClient.noHttpProxyList=ndg.security.common.SessionMgr.SessionMgrClient-class.html#noHttpProxyList"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.noHttpProxyList
454ndg.security.common.SessionMgr.SessionMgrClient.noHttpProxyList" class="py-name" href="#" onclick="return doclink('link-41', 'noHttpProxyList', 'link-41');">noHttpProxyList</a></tt><tt class="py-op">)</tt> </tt>
455<a name="L124"></a><tt class="py-lineno">124</tt>  <tt class="py-line">         </tt>
456<a name="L125"></a><tt class="py-lineno">125</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt id="link-42" class="py-name" targets="Variable ndg.security.common.AttAuthority.AttAuthorityClient.sslPeerCertCN=ndg.security.common.AttAuthority.AttAuthorityClient-class.html#sslPeerCertCN,Variable ndg.security.common.SessionMgr.SessionMgrClient.sslPeerCertCN=ndg.security.common.SessionMgr.SessionMgrClient-class.html#sslPeerCertCN"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.sslPeerCertCN
457ndg.security.common.SessionMgr.SessionMgrClient.sslPeerCertCN" class="py-name" href="#" onclick="return doclink('link-42', 'sslPeerCertCN', 'link-42');">sslPeerCertCN</a></tt><tt class="py-op">:</tt> </tt>
458<a name="L126"></a><tt class="py-lineno">126</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-43" class="py-name" targets="Method ndg.security.common.AttAuthority.AttAuthorityClient.__setSSLPeerCertCN()=ndg.security.common.AttAuthority.AttAuthorityClient-class.html#__setSSLPeerCertCN,Method ndg.security.common.SessionMgr.SessionMgrClient.__setSSLPeerCertCN()=ndg.security.common.SessionMgr.SessionMgrClient-class.html#__setSSLPeerCertCN"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.__setSSLPeerCertCN
459ndg.security.common.SessionMgr.SessionMgrClient.__setSSLPeerCertCN" class="py-name" href="#" onclick="return doclink('link-43', '__setSSLPeerCertCN', 'link-43');">__setSSLPeerCertCN</a></tt><tt class="py-op">(</tt><tt id="link-44" class="py-name"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.sslPeerCertCN
460ndg.security.common.SessionMgr.SessionMgrClient.sslPeerCertCN" class="py-name" href="#" onclick="return doclink('link-44', 'sslPeerCertCN', 'link-42');">sslPeerCertCN</a></tt><tt class="py-op">)</tt> </tt>
461<a name="L127"></a><tt class="py-lineno">127</tt>  <tt class="py-line">         </tt>
462<a name="L128"></a><tt class="py-lineno">128</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt id="link-45" class="py-name" targets="Variable ndg.security.common.AttAuthority.AttAuthorityClient.sslCACertList=ndg.security.common.AttAuthority.AttAuthorityClient-class.html#sslCACertList,Variable ndg.security.common.SessionMgr.SessionMgrClient.sslCACertList=ndg.security.common.SessionMgr.SessionMgrClient-class.html#sslCACertList"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.sslCACertList
463ndg.security.common.SessionMgr.SessionMgrClient.sslCACertList" class="py-name" href="#" onclick="return doclink('link-45', 'sslCACertList', 'link-45');">sslCACertList</a></tt><tt class="py-op">:</tt> </tt>
464<a name="L129"></a><tt class="py-lineno">129</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-46" class="py-name" targets="Method ndg.security.common.AttAuthority.AttAuthorityClient.__setSSLCACertList()=ndg.security.common.AttAuthority.AttAuthorityClient-class.html#__setSSLCACertList,Method ndg.security.common.SessionMgr.SessionMgrClient.__setSSLCACertList()=ndg.security.common.SessionMgr.SessionMgrClient-class.html#__setSSLCACertList"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.__setSSLCACertList
465ndg.security.common.SessionMgr.SessionMgrClient.__setSSLCACertList" class="py-name" href="#" onclick="return doclink('link-46', '__setSSLCACertList', 'link-46');">__setSSLCACertList</a></tt><tt class="py-op">(</tt><tt id="link-47" class="py-name"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.sslCACertList
466ndg.security.common.SessionMgr.SessionMgrClient.sslCACertList" class="py-name" href="#" onclick="return doclink('link-47', 'sslCACertList', 'link-45');">sslCACertList</a></tt><tt class="py-op">)</tt> </tt>
467<a name="L130"></a><tt class="py-lineno">130</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt id="link-48" class="py-name" targets="Variable ndg.security.common.AttAuthority.AttAuthorityClient.sslCACertFilePathList=ndg.security.common.AttAuthority.AttAuthorityClient-class.html#sslCACertFilePathList,Variable ndg.security.common.SessionMgr.SessionMgrClient.sslCACertFilePathList=ndg.security.common.SessionMgr.SessionMgrClient-class.html#sslCACertFilePathList"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.sslCACertFilePathList
468ndg.security.common.SessionMgr.SessionMgrClient.sslCACertFilePathList" class="py-name" href="#" onclick="return doclink('link-48', 'sslCACertFilePathList', 'link-48');">sslCACertFilePathList</a></tt><tt class="py-op">:</tt> </tt>
469<a name="L131"></a><tt class="py-lineno">131</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-49" class="py-name" targets="Method ndg.security.common.AttAuthority.AttAuthorityClient.__setSSLCACertFilePathList()=ndg.security.common.AttAuthority.AttAuthorityClient-class.html#__setSSLCACertFilePathList,Method ndg.security.common.SessionMgr.SessionMgrClient.__setSSLCACertFilePathList()=ndg.security.common.SessionMgr.SessionMgrClient-class.html#__setSSLCACertFilePathList"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.__setSSLCACertFilePathList
470ndg.security.common.SessionMgr.SessionMgrClient.__setSSLCACertFilePathList" class="py-name" href="#" onclick="return doclink('link-49', '__setSSLCACertFilePathList', 'link-49');">__setSSLCACertFilePathList</a></tt><tt class="py-op">(</tt><tt id="link-50" class="py-name"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.sslCACertFilePathList
471ndg.security.common.SessionMgr.SessionMgrClient.sslCACertFilePathList" class="py-name" href="#" onclick="return doclink('link-50', 'sslCACertFilePathList', 'link-48');">sslCACertFilePathList</a></tt><tt class="py-op">)</tt> </tt>
472<a name="L132"></a><tt class="py-lineno">132</tt>  <tt class="py-line">         </tt>
473<a name="L133"></a><tt class="py-lineno">133</tt>  <tt class="py-line">        <tt class="py-comment"># WS-Security Signature handler - set only if any of the keywords were</tt> </tt>
474<a name="L134"></a><tt class="py-lineno">134</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment"># set</tt> </tt>
475<a name="L135"></a><tt class="py-lineno">135</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-keyword">if</tt> <tt class="py-name">setSignatureHandler</tt><tt class="py-op">:</tt> </tt>
476<a name="L136"></a><tt class="py-lineno">136</tt>  <tt class="py-line">            <tt id="link-51" class="py-name"><a title="ndg.security.client.ssoclient.ssoclient.config.ssoClientMiddleware.log
477ndg.security.client.ssoclient.ssoclient.controllers.logout.log
478ndg.security.client.ssoclient.ssoclient.controllers.test1.log
479ndg.security.client.ssoclient.ssoclient.lib.base.log
480ndg.security.client.ssoclient.ssoclient.websetup.log
481ndg.security.common.AttAuthority.log
482ndg.security.common.CredWallet.log
483ndg.security.common.SessionMgr.log
484ndg.security.common.authz.pdp.browse.log
485ndg.security.common.authz.pdp.log
486ndg.security.common.authz.pdp.proftp.log
487ndg.security.common.authz.pep.log
488ndg.security.common.gatekeeper.log
489ndg.security.common.logService.log_services_server.log
490ndg.security.common.pylons.security_util.log
491ndg.security.common.saml.log
492ndg.security.common.utils.ClassFactory.log
493ndg.security.common.utils.ConfigFileParsers.log
494ndg.security.common.wssecurity.BaseSignatureHandler.log
495ndg.security.common.wssecurity.dom.log
496ndg.security.common.wssecurity.etree.log
497ndg.security.common.xmlsec.etree.log
498ndg.security.server.AttAuthority.log
499ndg.security.server.Log.log
500ndg.security.server.SessionMgr.log
501ndg.security.server.log
502ndg.security.server.pylons.container.controllers.hello.log
503ndg.security.server.pylons.container.lib.openid_provider_util.log
504ndg.security.server.pylons.container.websetup.log
505ndg.security.server.sso.sso.config.middleware.log
506ndg.security.server.sso.sso.config.ssoServiceMiddleware.log
507ndg.security.server.sso.sso.controllers.login.log
508ndg.security.server.sso.sso.controllers.logout.log
509ndg.security.server.sso.sso.controllers.test1.log
510ndg.security.server.sso.sso.controllers.wayf.log
511ndg.security.server.sso.sso.lib.base.log
512ndg.security.server.sso.sso.lib.openid_util.log
513ndg.security.server.sso.sso.websetup.log
514ndg.security.server.wsgi.openid_provider.log
515ndg.security.server.wsgi.soap.log
516ndg.security.server.wsgi.wssecurity.log
517ndg.security.server.zsi.attributeauthority.log
518ndg.security.test.Log.LogTest.log
519ndg.security.test.authenservice.test_authen_service.log
520ndg.security.test.wsSecurity.server.echoServer.log
521ndg.security.test.xmlsec.etree.test_etree.log" class="py-name" href="#" onclick="return doclink('link-51', 'log', 'link-28');">log</a></tt><tt class="py-op">.</tt><tt id="link-52" class="py-name"><a title="ndg.security.client.LogClient.LogClient.debug
522ndg.security.common.logService.log_services.logBindingSOAP.debug" class="py-name" href="#" onclick="return doclink('link-52', 'debug', 'link-33');">debug</a></tt><tt class="py-op">(</tt><tt class="py-string">'signatureHandlerKw = %s'</tt> <tt class="py-op">%</tt> <tt class="py-name">signatureHandlerKw</tt><tt class="py-op">)</tt> </tt>
523<a name="L137"></a><tt class="py-lineno">137</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__signatureHandler</tt> <tt class="py-op">=</tt> <tt id="link-53" class="py-name"><a title="ndg.security.common.wssecurity.dom.SignatureHandler
524ndg.security.common.wssecurity.etree.SignatureHandler" class="py-name" href="#" onclick="return doclink('link-53', 'SignatureHandler', 'link-9');">SignatureHandler</a></tt><tt class="py-op">(</tt><tt class="py-op">**</tt><tt class="py-name">signatureHandlerKw</tt><tt class="py-op">)</tt> </tt>
525<a name="L138"></a><tt class="py-lineno">138</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
526<a name="L139"></a><tt class="py-lineno">139</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__signatureHandler</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
527<a name="L140"></a><tt class="py-lineno">140</tt>  <tt class="py-line">            </tt>
528<a name="L141"></a><tt class="py-lineno">141</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__tracefile</tt> <tt class="py-op">=</tt> <tt class="py-name">tracefile</tt> </tt>
529<a name="L142"></a><tt class="py-lineno">142</tt>  <tt class="py-line">         </tt>
530<a name="L143"></a><tt class="py-lineno">143</tt>  <tt class="py-line">        <tt class="py-comment"># Instantiate Attribute Authority WS proxy</tt> </tt>
531<a name="L144"></a><tt class="py-lineno">144</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__uri</tt><tt class="py-op">:</tt> </tt>
532<a name="L145"></a><tt class="py-lineno">145</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-54" class="py-name" targets="Method ndg.security.common.AttAuthority.AttAuthorityClient.initService()=ndg.security.common.AttAuthority.AttAuthorityClient-class.html#initService,Method ndg.security.common.SessionMgr.SessionMgrClient.initService()=ndg.security.common.SessionMgr.SessionMgrClient-class.html#initService,Method ndg.security.common.ca.CertificateAuthorityClient.initService()=ndg.security.common.ca.CertificateAuthorityClient-class.html#initService"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.initService
533ndg.security.common.SessionMgr.SessionMgrClient.initService
534ndg.security.common.ca.CertificateAuthorityClient.initService" class="py-name" href="#" onclick="return doclink('link-54', 'initService', 'link-54');">initService</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
535</div><a name="L146"></a><tt class="py-lineno">146</tt>  <tt class="py-line">         </tt>
536<a name="L147"></a><tt class="py-lineno">147</tt>  <tt class="py-line"> </tt>
537<a name="L148"></a><tt class="py-lineno">148</tt>  <tt class="py-line">    <tt class="py-comment">#_________________________________________________________________________</tt> </tt>
538<a name="AttAuthorityClient.__setURI"></a><div id="AttAuthorityClient.__setURI-def"><a name="L149"></a><tt class="py-lineno">149</tt> <a class="py-toggle" href="#" id="AttAuthorityClient.__setURI-toggle" onclick="return toggle('AttAuthorityClient.__setURI');">-</a><tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">def</tt> <a class="py-def-name" href="ndg.security.common.AttAuthority.AttAuthorityClient-class.html#__setURI">__setURI</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">uri</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
539</div><div id="AttAuthorityClient.__setURI-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="AttAuthorityClient.__setURI-expanded"><a name="L150"></a><tt class="py-lineno">150</tt>  <tt class="py-line">        <tt class="py-docstring">"""Set URI for service</tt> </tt>
540<a name="L151"></a><tt class="py-lineno">151</tt>  <tt class="py-line"><tt class="py-docstring">        @type uri: string</tt> </tt>
541<a name="L152"></a><tt class="py-lineno">152</tt>  <tt class="py-line"><tt class="py-docstring">        @param uri: URI for service to connect to"""</tt> </tt>
542<a name="L153"></a><tt class="py-lineno">153</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt id="link-55" class="py-name"><a title="ndg.security.client.LogClient.LogClient.uri
543ndg.security.common.AttAuthority.AttAuthorityClient.uri
544ndg.security.common.SessionMgr.SessionMgrClient.uri
545ndg.security.common.ca.CertificateAuthorityClient.uri" class="py-name" href="#" onclick="return doclink('link-55', 'uri', 'link-35');">uri</a></tt><tt class="py-op">,</tt> <tt class="py-name">basestring</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
546<a name="L154"></a><tt class="py-lineno">154</tt>  <tt class="py-line">            <tt class="py-keyword">raise</tt> <tt id="link-56" class="py-name" targets="Class ndg.security.common.AttAuthority.AttAuthorityClientError=ndg.security.common.AttAuthority.AttAuthorityClientError-class.html"><a title="ndg.security.common.AttAuthority.AttAuthorityClientError" class="py-name" href="#" onclick="return doclink('link-56', 'AttAuthorityClientError', 'link-56');">AttAuthorityClientError</a></tt><tt class="py-op">(</tt> </tt>
547<a name="L155"></a><tt class="py-lineno">155</tt>  <tt class="py-line">                        <tt class="py-string">"Attribute Authority URI must be a valid string"</tt><tt class="py-op">)</tt> </tt>
548<a name="L156"></a><tt class="py-lineno">156</tt>  <tt class="py-line">         </tt>
549<a name="L157"></a><tt class="py-lineno">157</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__uri</tt> <tt class="py-op">=</tt> <tt id="link-57" class="py-name"><a title="ndg.security.client.LogClient.LogClient.uri
550ndg.security.common.AttAuthority.AttAuthorityClient.uri
551ndg.security.common.SessionMgr.SessionMgrClient.uri
552ndg.security.common.ca.CertificateAuthorityClient.uri" class="py-name" href="#" onclick="return doclink('link-57', 'uri', 'link-35');">uri</a></tt> </tt>
553<a name="L158"></a><tt class="py-lineno">158</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
554<a name="L159"></a><tt class="py-lineno">159</tt>  <tt class="py-line">            <tt class="py-name">scheme</tt> <tt class="py-op">=</tt> <tt class="py-name">urlparse</tt><tt class="py-op">.</tt><tt class="py-name">urlparse</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__uri</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> </tt>
555<a name="L160"></a><tt class="py-lineno">160</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt> <tt class="py-name">TypeError</tt><tt class="py-op">:</tt> </tt>
556<a name="L161"></a><tt class="py-lineno">161</tt>  <tt class="py-line">            <tt class="py-keyword">raise</tt> <tt class="py-name">AttributeAuthorityClientError</tt><tt class="py-op">(</tt> </tt>
557<a name="L162"></a><tt class="py-lineno">162</tt>  <tt class="py-line">                <tt class="py-string">"Error parsing transport type from URI: %s"</tt> <tt class="py-op">%</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__uri</tt><tt class="py-op">)</tt> </tt>
558<a name="L163"></a><tt class="py-lineno">163</tt>  <tt class="py-line">                 </tt>
559<a name="L164"></a><tt class="py-lineno">164</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">scheme</tt> <tt class="py-op">==</tt> <tt class="py-string">"https"</tt><tt class="py-op">:</tt> </tt>
560<a name="L165"></a><tt class="py-lineno">165</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_transport</tt> <tt class="py-op">=</tt> <tt id="link-58" class="py-name"><a title="ndg.security.common.m2CryptoSSLUtility.HTTPSConnection" class="py-name" href="#" onclick="return doclink('link-58', 'HTTPSConnection', 'link-20');">HTTPSConnection</a></tt> </tt>
561<a name="L166"></a><tt class="py-lineno">166</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
562<a name="L167"></a><tt class="py-lineno">167</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_transport</tt> <tt class="py-op">=</tt> <tt id="link-59" class="py-name"><a title="ndg.security.common.zsi_utils.httpproxy.ProxyHTTPConnection" class="py-name" href="#" onclick="return doclink('link-59', 'ProxyHTTPConnection', 'link-27');">ProxyHTTPConnection</a></tt> </tt>
563</div><a name="L168"></a><tt class="py-lineno">168</tt>  <tt class="py-line"> </tt>
564<a name="L169"></a><tt class="py-lineno">169</tt>  <tt class="py-line"> </tt>
565<a name="L170"></a><tt class="py-lineno">170</tt>  <tt class="py-line">    <tt class="py-comment">#_________________________________________________________________________</tt> </tt>
566<a name="AttAuthorityClient.__getURI"></a><div id="AttAuthorityClient.__getURI-def"><a name="L171"></a><tt class="py-lineno">171</tt> <a class="py-toggle" href="#" id="AttAuthorityClient.__getURI-toggle" onclick="return toggle('AttAuthorityClient.__getURI');">-</a><tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">def</tt> <a class="py-def-name" href="ndg.security.common.AttAuthority.AttAuthorityClient-class.html#__getURI">__getURI</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
567</div><div id="AttAuthorityClient.__getURI-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="AttAuthorityClient.__getURI-expanded"><a name="L172"></a><tt class="py-lineno">172</tt>  <tt class="py-line">        <tt class="py-docstring">"""Get URI for service</tt> </tt>
568<a name="L173"></a><tt class="py-lineno">173</tt>  <tt class="py-line"><tt class="py-docstring">        @rtype: string</tt> </tt>
569<a name="L174"></a><tt class="py-lineno">174</tt>  <tt class="py-line"><tt class="py-docstring">        @return: uri for service to be invoked"""</tt> </tt>
570<a name="L175"></a><tt class="py-lineno">175</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__uri</tt> </tt>
571</div><a name="L176"></a><tt class="py-lineno">176</tt>  <tt class="py-line">             </tt>
572<a name="L177"></a><tt class="py-lineno">177</tt>  <tt class="py-line">    <tt id="link-60" class="py-name"><a title="ndg.security.client.LogClient.LogClient.uri
573ndg.security.common.AttAuthority.AttAuthorityClient.uri
574ndg.security.common.SessionMgr.SessionMgrClient.uri
575ndg.security.common.ca.CertificateAuthorityClient.uri" class="py-name" href="#" onclick="return doclink('link-60', 'uri', 'link-35');">uri</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt class="py-name">fset</tt><tt class="py-op">=</tt><tt id="link-61" class="py-name"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.__setURI
576ndg.security.common.SessionMgr.SessionMgrClient.__setURI
577ndg.security.common.ca.CertificateAuthorityClient.__setURI" class="py-name" href="#" onclick="return doclink('link-61', '__setURI', 'link-36');">__setURI</a></tt><tt class="py-op">,</tt> <tt class="py-name">fget</tt><tt class="py-op">=</tt><tt id="link-62" class="py-name" targets="Method ndg.security.common.AttAuthority.AttAuthorityClient.__getURI()=ndg.security.common.AttAuthority.AttAuthorityClient-class.html#__getURI,Method ndg.security.common.SessionMgr.SessionMgrClient.__getURI()=ndg.security.common.SessionMgr.SessionMgrClient-class.html#__getURI"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.__getURI
578ndg.security.common.SessionMgr.SessionMgrClient.__getURI" class="py-name" href="#" onclick="return doclink('link-62', '__getURI', 'link-62');">__getURI</a></tt><tt class="py-op">,</tt><tt class="py-name">doc</tt><tt class="py-op">=</tt><tt class="py-string">"Attribute Authority URI"</tt><tt class="py-op">)</tt> </tt>
579<a name="L178"></a><tt class="py-lineno">178</tt>  <tt class="py-line"> </tt>
580<a name="L179"></a><tt class="py-lineno">179</tt>  <tt class="py-line"> </tt>
581<a name="L180"></a><tt class="py-lineno">180</tt>  <tt class="py-line">    <tt class="py-comment">#_________________________________________________________________________</tt> </tt>
582<a name="AttAuthorityClient.__setHTTPProxyHost"></a><div id="AttAuthorityClient.__setHTTPProxyHost-def"><a name="L181"></a><tt class="py-lineno">181</tt> <a class="py-toggle" href="#" id="AttAuthorityClient.__setHTTPProxyHost-toggle" onclick="return toggle('AttAuthorityClient.__setHTTPProxyHost');">-</a><tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">def</tt> <a class="py-def-name" href="ndg.security.common.AttAuthority.AttAuthorityClient-class.html#__setHTTPProxyHost">__setHTTPProxyHost</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">val</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
583</div><div id="AttAuthorityClient.__setHTTPProxyHost-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="AttAuthorityClient.__setHTTPProxyHost-expanded"><a name="L182"></a><tt class="py-lineno">182</tt>  <tt class="py-line">        <tt class="py-docstring">"""Set a HTTP Proxy host overriding any http_proxy environment variable</tt> </tt>
584<a name="L183"></a><tt class="py-lineno">183</tt>  <tt class="py-line"><tt class="py-docstring">        setting"""</tt> </tt>
585<a name="L184"></a><tt class="py-lineno">184</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_transport</tt> <tt class="py-op">!=</tt> <tt id="link-63" class="py-name"><a title="ndg.security.common.zsi_utils.httpproxy.ProxyHTTPConnection" class="py-name" href="#" onclick="return doclink('link-63', 'ProxyHTTPConnection', 'link-27');">ProxyHTTPConnection</a></tt><tt class="py-op">:</tt> </tt>
586<a name="L185"></a><tt class="py-lineno">185</tt>  <tt class="py-line">            <tt id="link-64" class="py-name"><a title="ndg.security.client.ssoclient.ssoclient.config.ssoClientMiddleware.log
587ndg.security.client.ssoclient.ssoclient.controllers.logout.log
588ndg.security.client.ssoclient.ssoclient.controllers.test1.log
589ndg.security.client.ssoclient.ssoclient.lib.base.log
590ndg.security.client.ssoclient.ssoclient.websetup.log
591ndg.security.common.AttAuthority.log
592ndg.security.common.CredWallet.log
593ndg.security.common.SessionMgr.log
594ndg.security.common.authz.pdp.browse.log
595ndg.security.common.authz.pdp.log
596ndg.security.common.authz.pdp.proftp.log
597ndg.security.common.authz.pep.log
598ndg.security.common.gatekeeper.log
599ndg.security.common.logService.log_services_server.log
600ndg.security.common.pylons.security_util.log
601ndg.security.common.saml.log
602ndg.security.common.utils.ClassFactory.log
603ndg.security.common.utils.ConfigFileParsers.log
604ndg.security.common.wssecurity.BaseSignatureHandler.log
605ndg.security.common.wssecurity.dom.log
606ndg.security.common.wssecurity.etree.log
607ndg.security.common.xmlsec.etree.log
608ndg.security.server.AttAuthority.log
609ndg.security.server.Log.log
610ndg.security.server.SessionMgr.log
611ndg.security.server.log
612ndg.security.server.pylons.container.controllers.hello.log
613ndg.security.server.pylons.container.lib.openid_provider_util.log
614ndg.security.server.pylons.container.websetup.log
615ndg.security.server.sso.sso.config.middleware.log
616ndg.security.server.sso.sso.config.ssoServiceMiddleware.log
617ndg.security.server.sso.sso.controllers.login.log
618ndg.security.server.sso.sso.controllers.logout.log
619ndg.security.server.sso.sso.controllers.test1.log
620ndg.security.server.sso.sso.controllers.wayf.log
621ndg.security.server.sso.sso.lib.base.log
622ndg.security.server.sso.sso.lib.openid_util.log
623ndg.security.server.sso.sso.websetup.log
624ndg.security.server.wsgi.openid_provider.log
625ndg.security.server.wsgi.soap.log
626ndg.security.server.wsgi.wssecurity.log
627ndg.security.server.zsi.attributeauthority.log
628ndg.security.test.Log.LogTest.log
629ndg.security.test.authenservice.test_authen_service.log
630ndg.security.test.wsSecurity.server.echoServer.log
631ndg.security.test.xmlsec.etree.test_etree.log" class="py-name" href="#" onclick="return doclink('link-64', 'log', 'link-28');">log</a></tt><tt class="py-op">.</tt><tt id="link-65" class="py-name" targets="Method ndg.security.client.LogClient.LogClient.info()=ndg.security.client.LogClient.LogClient-class.html#info,Method ndg.security.common.logService.log_services.logBindingSOAP.info()=ndg.security.common.logService.log_services.logBindingSOAP-class.html#info,Method ndg.security.server.authenservice.MyProxy.MyProxyClient.info()=ndg.security.server.authenservice.MyProxy.MyProxyClient-class.html#info,Method ndg.security.test.authenservice.test_authen_service.TestAutheNService.info()=ndg.security.test.authenservice.test_authen_service.TestAutheNService-class.html#info"><a title="ndg.security.client.LogClient.LogClient.info
632ndg.security.common.logService.log_services.logBindingSOAP.info
633ndg.security.server.authenservice.MyProxy.MyProxyClient.info
634ndg.security.test.authenservice.test_authen_service.TestAutheNService.info" class="py-name" href="#" onclick="return doclink('link-65', 'info', 'link-65');">info</a></tt><tt class="py-op">(</tt><tt class="py-string">"Ignoring httpProxyHost setting: transport class is "</tt> <tt class="py-op">+</tt>\ </tt>
635<a name="L186"></a><tt class="py-lineno">186</tt>  <tt class="py-line">                     <tt class="py-string">"not ProxyHTTPConnection type"</tt><tt class="py-op">)</tt> </tt>
636<a name="L187"></a><tt class="py-lineno">187</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> </tt>
637<a name="L188"></a><tt class="py-lineno">188</tt>  <tt class="py-line">         </tt>
638<a name="L189"></a><tt class="py-lineno">189</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_transdict</tt><tt class="py-op">[</tt><tt class="py-string">'httpProxyHost'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">val</tt> </tt>
639</div><a name="L190"></a><tt class="py-lineno">190</tt>  <tt class="py-line"> </tt>
640<a name="L191"></a><tt class="py-lineno">191</tt>  <tt class="py-line">    <tt id="link-66" class="py-name"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.httpProxyHost
641ndg.security.common.SessionMgr.SessionMgrClient.httpProxyHost" class="py-name" href="#" onclick="return doclink('link-66', 'httpProxyHost', 'link-39');">httpProxyHost</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt class="py-name">fset</tt><tt class="py-op">=</tt><tt id="link-67" class="py-name"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.__setHTTPProxyHost
642ndg.security.common.SessionMgr.SessionMgrClient.__setHTTPProxyHost" class="py-name" href="#" onclick="return doclink('link-67', '__setHTTPProxyHost', 'link-38');">__setHTTPProxyHost</a></tt><tt class="py-op">,</tt>  </tt>
643<a name="L192"></a><tt class="py-lineno">192</tt>  <tt class="py-line">        <tt class="py-name">doc</tt><tt class="py-op">=</tt><tt class="py-string">"HTTP Proxy hostname - overrides any http_proxy env var setting"</tt><tt class="py-op">)</tt> </tt>
644<a name="L193"></a><tt class="py-lineno">193</tt>  <tt class="py-line"> </tt>
645<a name="L194"></a><tt class="py-lineno">194</tt>  <tt class="py-line"> </tt>
646<a name="L195"></a><tt class="py-lineno">195</tt>  <tt class="py-line">    <tt class="py-comment">#_________________________________________________________________________</tt> </tt>
647<a name="AttAuthorityClient.__setNoHttpProxyList"></a><div id="AttAuthorityClient.__setNoHttpProxyList-def"><a name="L196"></a><tt class="py-lineno">196</tt> <a class="py-toggle" href="#" id="AttAuthorityClient.__setNoHttpProxyList-toggle" onclick="return toggle('AttAuthorityClient.__setNoHttpProxyList');">-</a><tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">def</tt> <a class="py-def-name" href="ndg.security.common.AttAuthority.AttAuthorityClient-class.html#__setNoHttpProxyList">__setNoHttpProxyList</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">val</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
648</div><div id="AttAuthorityClient.__setNoHttpProxyList-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="AttAuthorityClient.__setNoHttpProxyList-expanded"><a name="L197"></a><tt class="py-lineno">197</tt>  <tt class="py-line">        <tt class="py-docstring">"""Set to list of hosts for which to ignore the HTTP Proxy setting"""</tt> </tt>
649<a name="L198"></a><tt class="py-lineno">198</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_transport</tt> <tt class="py-op">!=</tt> <tt id="link-68" class="py-name"><a title="ndg.security.common.zsi_utils.httpproxy.ProxyHTTPConnection" class="py-name" href="#" onclick="return doclink('link-68', 'ProxyHTTPConnection', 'link-27');">ProxyHTTPConnection</a></tt><tt class="py-op">:</tt> </tt>
650<a name="L199"></a><tt class="py-lineno">199</tt>  <tt class="py-line">            <tt id="link-69" class="py-name"><a title="ndg.security.client.ssoclient.ssoclient.config.ssoClientMiddleware.log
651ndg.security.client.ssoclient.ssoclient.controllers.logout.log
652ndg.security.client.ssoclient.ssoclient.controllers.test1.log
653ndg.security.client.ssoclient.ssoclient.lib.base.log
654ndg.security.client.ssoclient.ssoclient.websetup.log
655ndg.security.common.AttAuthority.log
656ndg.security.common.CredWallet.log
657ndg.security.common.SessionMgr.log
658ndg.security.common.authz.pdp.browse.log
659ndg.security.common.authz.pdp.log
660ndg.security.common.authz.pdp.proftp.log
661ndg.security.common.authz.pep.log
662ndg.security.common.gatekeeper.log
663ndg.security.common.logService.log_services_server.log
664ndg.security.common.pylons.security_util.log
665ndg.security.common.saml.log
666ndg.security.common.utils.ClassFactory.log
667ndg.security.common.utils.ConfigFileParsers.log
668ndg.security.common.wssecurity.BaseSignatureHandler.log
669ndg.security.common.wssecurity.dom.log
670ndg.security.common.wssecurity.etree.log
671ndg.security.common.xmlsec.etree.log
672ndg.security.server.AttAuthority.log
673ndg.security.server.Log.log
674ndg.security.server.SessionMgr.log
675ndg.security.server.log
676ndg.security.server.pylons.container.controllers.hello.log
677ndg.security.server.pylons.container.lib.openid_provider_util.log
678ndg.security.server.pylons.container.websetup.log
679ndg.security.server.sso.sso.config.middleware.log
680ndg.security.server.sso.sso.config.ssoServiceMiddleware.log
681ndg.security.server.sso.sso.controllers.login.log
682ndg.security.server.sso.sso.controllers.logout.log
683ndg.security.server.sso.sso.controllers.test1.log
684ndg.security.server.sso.sso.controllers.wayf.log
685ndg.security.server.sso.sso.lib.base.log
686ndg.security.server.sso.sso.lib.openid_util.log
687ndg.security.server.sso.sso.websetup.log
688ndg.security.server.wsgi.openid_provider.log
689ndg.security.server.wsgi.soap.log
690ndg.security.server.wsgi.wssecurity.log
691ndg.security.server.zsi.attributeauthority.log
692ndg.security.test.Log.LogTest.log
693ndg.security.test.authenservice.test_authen_service.log
694ndg.security.test.wsSecurity.server.echoServer.log
695ndg.security.test.xmlsec.etree.test_etree.log" class="py-name" href="#" onclick="return doclink('link-69', 'log', 'link-28');">log</a></tt><tt class="py-op">.</tt><tt id="link-70" class="py-name"><a title="ndg.security.client.LogClient.LogClient.info
696ndg.security.common.logService.log_services.logBindingSOAP.info
697ndg.security.server.authenservice.MyProxy.MyProxyClient.info
698ndg.security.test.authenservice.test_authen_service.TestAutheNService.info" class="py-name" href="#" onclick="return doclink('link-70', 'info', 'link-65');">info</a></tt><tt class="py-op">(</tt><tt class="py-string">"Ignore noHttpProxyList setting: transport "</tt> <tt class="py-op">+</tt> \ </tt>
699<a name="L200"></a><tt class="py-lineno">200</tt>  <tt class="py-line">                     <tt class="py-string">"class is not ProxyHTTPConnection type"</tt><tt class="py-op">)</tt> </tt>
700<a name="L201"></a><tt class="py-lineno">201</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> </tt>
701<a name="L202"></a><tt class="py-lineno">202</tt>  <tt class="py-line">         </tt>
702<a name="L203"></a><tt class="py-lineno">203</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_transdict</tt><tt class="py-op">[</tt><tt class="py-string">'noHttpProxyList'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">val</tt> </tt>
703</div><a name="L204"></a><tt class="py-lineno">204</tt>  <tt class="py-line"> </tt>
704<a name="L205"></a><tt class="py-lineno">205</tt>  <tt class="py-line">    <tt id="link-71" class="py-name"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.noHttpProxyList
705ndg.security.common.SessionMgr.SessionMgrClient.noHttpProxyList" class="py-name" href="#" onclick="return doclink('link-71', 'noHttpProxyList', 'link-41');">noHttpProxyList</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt class="py-name">fset</tt><tt class="py-op">=</tt><tt id="link-72" class="py-name"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.__setNoHttpProxyList
706ndg.security.common.SessionMgr.SessionMgrClient.__setNoHttpProxyList" class="py-name" href="#" onclick="return doclink('link-72', '__setNoHttpProxyList', 'link-40');">__setNoHttpProxyList</a></tt><tt class="py-op">,</tt>  </tt>
707<a name="L206"></a><tt class="py-lineno">206</tt>  <tt class="py-line">    <tt class="py-name">doc</tt><tt class="py-op">=</tt><tt class="py-string">"Set to list of hosts for which to ignore the HTTP Proxy setting"</tt><tt class="py-op">)</tt> </tt>
708<a name="L207"></a><tt class="py-lineno">207</tt>  <tt class="py-line"> </tt>
709<a name="L208"></a><tt class="py-lineno">208</tt>  <tt class="py-line"> </tt>
710<a name="L209"></a><tt class="py-lineno">209</tt>  <tt class="py-line">    <tt class="py-comment">#_________________________________________________________________________</tt> </tt>
711<a name="AttAuthorityClient.__setSSLPeerCertCN"></a><div id="AttAuthorityClient.__setSSLPeerCertCN-def"><a name="L210"></a><tt class="py-lineno">210</tt> <a class="py-toggle" href="#" id="AttAuthorityClient.__setSSLPeerCertCN-toggle" onclick="return toggle('AttAuthorityClient.__setSSLPeerCertCN');">-</a><tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">def</tt> <a class="py-def-name" href="ndg.security.common.AttAuthority.AttAuthorityClient-class.html#__setSSLPeerCertCN">__setSSLPeerCertCN</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">cn</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
712</div><div id="AttAuthorityClient.__setSSLPeerCertCN-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="AttAuthorityClient.__setSSLPeerCertCN-expanded"><a name="L211"></a><tt class="py-lineno">211</tt>  <tt class="py-line">        <tt class="py-docstring">"""For use with HTTPS connections only.  Specify the Common</tt> </tt>
713<a name="L212"></a><tt class="py-lineno">212</tt>  <tt class="py-line"><tt class="py-docstring">        Name to match with Common Name of the peer certificate.  This is not</tt> </tt>
714<a name="L213"></a><tt class="py-lineno">213</tt>  <tt class="py-line"><tt class="py-docstring">        needed if the peer cert CN = peer hostname"""</tt> </tt>
715<a name="L214"></a><tt class="py-lineno">214</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_transport</tt> <tt class="py-op">!=</tt> <tt id="link-73" class="py-name"><a title="ndg.security.common.m2CryptoSSLUtility.HTTPSConnection" class="py-name" href="#" onclick="return doclink('link-73', 'HTTPSConnection', 'link-20');">HTTPSConnection</a></tt><tt class="py-op">:</tt> </tt>
716<a name="L215"></a><tt class="py-lineno">215</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> </tt>
717<a name="L216"></a><tt class="py-lineno">216</tt>  <tt class="py-line">         </tt>
718<a name="L217"></a><tt class="py-lineno">217</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_transdict</tt><tt class="py-op">.</tt><tt id="link-74" class="py-name" targets="Method ndg.security.client.SimpleCAClient.SimpleCAClient.get()=ndg.security.client.SimpleCAClient.SimpleCAClient-class.html#get,Method ndg.security.common.X509.X500DN.get()=ndg.security.common.X509.X500DN-class.html#get,Method ndg.security.common.pylons.security_util.SecuritySession.get()=ndg.security.common.pylons.security_util.SecuritySession-class.html#get,Method ndg.security.common.wssecurity.WSSecurityConfig.get()=ndg.security.common.wssecurity.WSSecurityConfig-class.html#get,Method ndg.security.server.AttAuthority.AttAuthority.get()=ndg.security.server.AttAuthority.AttAuthority-class.html#get,Method ndg.security.server.SessionMgr.SessionMgr.get()=ndg.security.server.SessionMgr.SessionMgr-class.html#get,Method ndg.security.server.ca.SimpleCA.get()=ndg.security.server.ca.SimpleCA-class.html#get"><a title="ndg.security.client.SimpleCAClient.SimpleCAClient.get
719ndg.security.common.X509.X500DN.get
720ndg.security.common.pylons.security_util.SecuritySession.get
721ndg.security.common.wssecurity.WSSecurityConfig.get
722ndg.security.server.AttAuthority.AttAuthority.get
723ndg.security.server.SessionMgr.SessionMgr.get
724ndg.security.server.ca.SimpleCA.get" class="py-name" href="#" onclick="return doclink('link-74', 'get', 'link-74');">get</a></tt><tt class="py-op">(</tt><tt class="py-string">'postConnectionCheck'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
725<a name="L218"></a><tt class="py-lineno">218</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_transdict</tt><tt class="py-op">[</tt><tt class="py-string">'postConnectionCheck'</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt class="py-name">peerCertCN</tt> <tt class="py-op">=</tt> <tt class="py-name">cn</tt> </tt>
726<a name="L219"></a><tt class="py-lineno">219</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
727<a name="L220"></a><tt class="py-lineno">220</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_transdict</tt><tt class="py-op">[</tt><tt class="py-string">'postConnectionCheck'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt id="link-75" class="py-name"><a title="ndg.security.common.m2CryptoSSLUtility.HostCheck" class="py-name" href="#" onclick="return doclink('link-75', 'HostCheck', 'link-21');">HostCheck</a></tt><tt class="py-op">(</tt><tt class="py-name">peerCertCN</tt><tt class="py-op">=</tt><tt class="py-name">cn</tt><tt class="py-op">)</tt> </tt>
728</div><a name="L221"></a><tt class="py-lineno">221</tt>  <tt class="py-line"> </tt>
729<a name="L222"></a><tt class="py-lineno">222</tt>  <tt class="py-line">    <tt id="link-76" class="py-name"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.sslPeerCertCN
730ndg.security.common.SessionMgr.SessionMgrClient.sslPeerCertCN" class="py-name" href="#" onclick="return doclink('link-76', 'sslPeerCertCN', 'link-42');">sslPeerCertCN</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt class="py-name">fset</tt><tt class="py-op">=</tt><tt id="link-77" class="py-name"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.__setSSLPeerCertCN
731ndg.security.common.SessionMgr.SessionMgrClient.__setSSLPeerCertCN" class="py-name" href="#" onclick="return doclink('link-77', '__setSSLPeerCertCN', 'link-43');">__setSSLPeerCertCN</a></tt><tt class="py-op">,</tt>  </tt>
732<a name="L223"></a><tt class="py-lineno">223</tt>  <tt class="py-line"><tt class="py-name">doc</tt><tt class="py-op">=</tt><tt class="py-string">"for https connections, set CN of peer cert if other than peer hostname"</tt><tt class="py-op">)</tt> </tt>
733<a name="L224"></a><tt class="py-lineno">224</tt>  <tt class="py-line"> </tt>
734<a name="L225"></a><tt class="py-lineno">225</tt>  <tt class="py-line"> </tt>
735<a name="L226"></a><tt class="py-lineno">226</tt>  <tt class="py-line">    <tt class="py-comment">#_________________________________________________________________________</tt> </tt>
736<a name="AttAuthorityClient.__setSSLCACertList"></a><div id="AttAuthorityClient.__setSSLCACertList-def"><a name="L227"></a><tt class="py-lineno">227</tt> <a class="py-toggle" href="#" id="AttAuthorityClient.__setSSLCACertList-toggle" onclick="return toggle('AttAuthorityClient.__setSSLCACertList');">-</a><tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">def</tt> <a class="py-def-name" href="ndg.security.common.AttAuthority.AttAuthorityClient-class.html#__setSSLCACertList">__setSSLCACertList</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">caCertList</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
737</div><div id="AttAuthorityClient.__setSSLCACertList-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="AttAuthorityClient.__setSSLCACertList-expanded"><a name="L228"></a><tt class="py-lineno">228</tt>  <tt class="py-line">        <tt class="py-docstring">"""For use with HTTPS connections only.  Specify CA certs to one of </tt> </tt>
738<a name="L229"></a><tt class="py-lineno">229</tt>  <tt class="py-line"><tt class="py-docstring">        which the peer cert must verify its signature against"""</tt> </tt>
739<a name="L230"></a><tt class="py-lineno">230</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_transport</tt> <tt class="py-op">!=</tt> <tt id="link-78" class="py-name"><a title="ndg.security.common.m2CryptoSSLUtility.HTTPSConnection" class="py-name" href="#" onclick="return doclink('link-78', 'HTTPSConnection', 'link-20');">HTTPSConnection</a></tt><tt class="py-op">:</tt> </tt>
740<a name="L231"></a><tt class="py-lineno">231</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> </tt>
741<a name="L232"></a><tt class="py-lineno">232</tt>  <tt class="py-line">         </tt>
742<a name="L233"></a><tt class="py-lineno">233</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_transdict</tt><tt class="py-op">.</tt><tt id="link-79" class="py-name"><a title="ndg.security.client.SimpleCAClient.SimpleCAClient.get
743ndg.security.common.X509.X500DN.get
744ndg.security.common.pylons.security_util.SecuritySession.get
745ndg.security.common.wssecurity.WSSecurityConfig.get
746ndg.security.server.AttAuthority.AttAuthority.get
747ndg.security.server.SessionMgr.SessionMgr.get
748ndg.security.server.ca.SimpleCA.get" class="py-name" href="#" onclick="return doclink('link-79', 'get', 'link-74');">get</a></tt><tt class="py-op">(</tt><tt class="py-string">'postConnectionCheck'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
749<a name="L234"></a><tt class="py-lineno">234</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_transdict</tt><tt class="py-op">[</tt><tt class="py-string">'postConnectionCheck'</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt id="link-80" class="py-name" targets="Variable ndg.security.common.m2CryptoSSLUtility.HostCheck.caCertList=ndg.security.common.m2CryptoSSLUtility.HostCheck-class.html#caCertList"><a title="ndg.security.common.m2CryptoSSLUtility.HostCheck.caCertList" class="py-name" href="#" onclick="return doclink('link-80', 'caCertList', 'link-80');">caCertList</a></tt> <tt class="py-op">=</tt> <tt id="link-81" class="py-name"><a title="ndg.security.common.m2CryptoSSLUtility.HostCheck.caCertList" class="py-name" href="#" onclick="return doclink('link-81', 'caCertList', 'link-80');">caCertList</a></tt> </tt>
750<a name="L235"></a><tt class="py-lineno">235</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
751<a name="L236"></a><tt class="py-lineno">236</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_transdict</tt><tt class="py-op">[</tt><tt class="py-string">'postConnectionCheck'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> \ </tt>
752<a name="L237"></a><tt class="py-lineno">237</tt>  <tt class="py-line">                                            <tt id="link-82" class="py-name"><a title="ndg.security.common.m2CryptoSSLUtility.HostCheck" class="py-name" href="#" onclick="return doclink('link-82', 'HostCheck', 'link-21');">HostCheck</a></tt><tt class="py-op">(</tt><tt id="link-83" class="py-name"><a title="ndg.security.common.m2CryptoSSLUtility.HostCheck.caCertList" class="py-name" href="#" onclick="return doclink('link-83', 'caCertList', 'link-80');">caCertList</a></tt><tt class="py-op">=</tt><tt id="link-84" class="py-name"><a title="ndg.security.common.m2CryptoSSLUtility.HostCheck.caCertList" class="py-name" href="#" onclick="return doclink('link-84', 'caCertList', 'link-80');">caCertList</a></tt><tt class="py-op">)</tt> </tt>
753</div><a name="L238"></a><tt class="py-lineno">238</tt>  <tt class="py-line"> </tt>
754<a name="L239"></a><tt class="py-lineno">239</tt>  <tt class="py-line">    <tt id="link-85" class="py-name"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.sslCACertList
755ndg.security.common.SessionMgr.SessionMgrClient.sslCACertList" class="py-name" href="#" onclick="return doclink('link-85', 'sslCACertList', 'link-45');">sslCACertList</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt class="py-name">fset</tt><tt class="py-op">=</tt><tt id="link-86" class="py-name"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.__setSSLCACertList
756ndg.security.common.SessionMgr.SessionMgrClient.__setSSLCACertList" class="py-name" href="#" onclick="return doclink('link-86', '__setSSLCACertList', 'link-46');">__setSSLCACertList</a></tt><tt class="py-op">,</tt>  </tt>
757<a name="L240"></a><tt class="py-lineno">240</tt>  <tt class="py-line"><tt class="py-name">doc</tt><tt class="py-op">=</tt><tt class="py-string">"for https connections, set list of CA certs from which to verify peer cert"</tt><tt class="py-op">)</tt> </tt>
758<a name="L241"></a><tt class="py-lineno">241</tt>  <tt class="py-line"> </tt>
759<a name="L242"></a><tt class="py-lineno">242</tt>  <tt class="py-line"> </tt>
760<a name="L243"></a><tt class="py-lineno">243</tt>  <tt class="py-line">    <tt class="py-comment">#_________________________________________________________________________</tt> </tt>
761<a name="AttAuthorityClient.__setSSLCACertFilePathList"></a><div id="AttAuthorityClient.__setSSLCACertFilePathList-def"><a name="L244"></a><tt class="py-lineno">244</tt> <a class="py-toggle" href="#" id="AttAuthorityClient.__setSSLCACertFilePathList-toggle" onclick="return toggle('AttAuthorityClient.__setSSLCACertFilePathList');">-</a><tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">def</tt> <a class="py-def-name" href="ndg.security.common.AttAuthority.AttAuthorityClient-class.html#__setSSLCACertFilePathList">__setSSLCACertFilePathList</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">caCertFilePathList</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
762</div><div id="AttAuthorityClient.__setSSLCACertFilePathList-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="AttAuthorityClient.__setSSLCACertFilePathList-expanded"><a name="L245"></a><tt class="py-lineno">245</tt>  <tt class="py-line">        <tt class="py-docstring">"""For use with HTTPS connections only.  Specify CA certs to one of </tt> </tt>
763<a name="L246"></a><tt class="py-lineno">246</tt>  <tt class="py-line"><tt class="py-docstring">        which the peer cert must verify its signature against"""</tt> </tt>
764<a name="L247"></a><tt class="py-lineno">247</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_transport</tt> <tt class="py-op">!=</tt> <tt id="link-87" class="py-name"><a title="ndg.security.common.m2CryptoSSLUtility.HTTPSConnection" class="py-name" href="#" onclick="return doclink('link-87', 'HTTPSConnection', 'link-20');">HTTPSConnection</a></tt><tt class="py-op">:</tt> </tt>
765<a name="L248"></a><tt class="py-lineno">248</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> </tt>
766<a name="L249"></a><tt class="py-lineno">249</tt>  <tt class="py-line">         </tt>
767<a name="L250"></a><tt class="py-lineno">250</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_transdict</tt><tt class="py-op">.</tt><tt id="link-88" class="py-name"><a title="ndg.security.client.SimpleCAClient.SimpleCAClient.get
768ndg.security.common.X509.X500DN.get
769ndg.security.common.pylons.security_util.SecuritySession.get
770ndg.security.common.wssecurity.WSSecurityConfig.get
771ndg.security.server.AttAuthority.AttAuthority.get
772ndg.security.server.SessionMgr.SessionMgr.get
773ndg.security.server.ca.SimpleCA.get" class="py-name" href="#" onclick="return doclink('link-88', 'get', 'link-74');">get</a></tt><tt class="py-op">(</tt><tt class="py-string">'postConnectionCheck'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
774<a name="L251"></a><tt class="py-lineno">251</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_transdict</tt><tt class="py-op">[</tt><tt class="py-string">'postConnectionCheck'</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt id="link-89" class="py-name" targets="Variable ndg.security.common.CredWallet.CredWallet.caCertFilePathList=ndg.security.common.CredWallet.CredWallet-class.html#caCertFilePathList,Variable ndg.security.common.m2CryptoSSLUtility.HostCheck.caCertFilePathList=ndg.security.common.m2CryptoSSLUtility.HostCheck-class.html#caCertFilePathList,Variable ndg.security.common.wssecurity.BaseSignatureHandler.BaseSignatureHandler.caCertFilePathList=ndg.security.common.wssecurity.BaseSignatureHandler.BaseSignatureHandler-class.html#caCertFilePathList"><a title="ndg.security.common.CredWallet.CredWallet.caCertFilePathList
775ndg.security.common.m2CryptoSSLUtility.HostCheck.caCertFilePathList
776ndg.security.common.wssecurity.BaseSignatureHandler.BaseSignatureHandler.caCertFilePathList" class="py-name" href="#" onclick="return doclink('link-89', 'caCertFilePathList', 'link-89');">caCertFilePathList</a></tt> <tt class="py-op">=</tt> \ </tt>
777<a name="L252"></a><tt class="py-lineno">252</tt>  <tt class="py-line">                                                            <tt id="link-90" class="py-name"><a title="ndg.security.common.CredWallet.CredWallet.caCertFilePathList
778ndg.security.common.m2CryptoSSLUtility.HostCheck.caCertFilePathList
779ndg.security.common.wssecurity.BaseSignatureHandler.BaseSignatureHandler.caCertFilePathList" class="py-name" href="#" onclick="return doclink('link-90', 'caCertFilePathList', 'link-89');">caCertFilePathList</a></tt> </tt>
780<a name="L253"></a><tt class="py-lineno">253</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
781<a name="L254"></a><tt class="py-lineno">254</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_transdict</tt><tt class="py-op">[</tt><tt class="py-string">'postConnectionCheck'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> \ </tt>
782<a name="L255"></a><tt class="py-lineno">255</tt>  <tt class="py-line">                            <tt id="link-91" class="py-name"><a title="ndg.security.common.m2CryptoSSLUtility.HostCheck" class="py-name" href="#" onclick="return doclink('link-91', 'HostCheck', 'link-21');">HostCheck</a></tt><tt class="py-op">(</tt><tt id="link-92" class="py-name"><a title="ndg.security.common.CredWallet.CredWallet.caCertFilePathList
783ndg.security.common.m2CryptoSSLUtility.HostCheck.caCertFilePathList
784ndg.security.common.wssecurity.BaseSignatureHandler.BaseSignatureHandler.caCertFilePathList" class="py-name" href="#" onclick="return doclink('link-92', 'caCertFilePathList', 'link-89');">caCertFilePathList</a></tt><tt class="py-op">=</tt><tt id="link-93" class="py-name"><a title="ndg.security.common.CredWallet.CredWallet.caCertFilePathList
785ndg.security.common.m2CryptoSSLUtility.HostCheck.caCertFilePathList
786ndg.security.common.wssecurity.BaseSignatureHandler.BaseSignatureHandler.caCertFilePathList" class="py-name" href="#" onclick="return doclink('link-93', 'caCertFilePathList', 'link-89');">caCertFilePathList</a></tt><tt class="py-op">)</tt> </tt>
787</div><a name="L256"></a><tt class="py-lineno">256</tt>  <tt class="py-line"> </tt>
788<a name="L257"></a><tt class="py-lineno">257</tt>  <tt class="py-line">    <tt id="link-94" class="py-name"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.sslCACertFilePathList
789ndg.security.common.SessionMgr.SessionMgrClient.sslCACertFilePathList" class="py-name" href="#" onclick="return doclink('link-94', 'sslCACertFilePathList', 'link-48');">sslCACertFilePathList</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt class="py-name">fset</tt><tt class="py-op">=</tt><tt id="link-95" class="py-name"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.__setSSLCACertFilePathList
790ndg.security.common.SessionMgr.SessionMgrClient.__setSSLCACertFilePathList" class="py-name" href="#" onclick="return doclink('link-95', '__setSSLCACertFilePathList', 'link-49');">__setSSLCACertFilePathList</a></tt><tt class="py-op">,</tt>  </tt>
791<a name="L258"></a><tt class="py-lineno">258</tt>  <tt class="py-line"><tt class="py-name">doc</tt><tt class="py-op">=</tt><tt class="py-string">"for https connections, set list of CA cert files from which to verify peer cert"</tt><tt class="py-op">)</tt> </tt>
792<a name="L259"></a><tt class="py-lineno">259</tt>  <tt class="py-line"> </tt>
793<a name="L260"></a><tt class="py-lineno">260</tt>  <tt class="py-line">     </tt>
794<a name="L261"></a><tt class="py-lineno">261</tt>  <tt class="py-line">    <tt class="py-comment">#_________________________________________________________________________</tt> </tt>
795<a name="AttAuthorityClient.__setSignatureHandler"></a><div id="AttAuthorityClient.__setSignatureHandler-def"><a name="L262"></a><tt class="py-lineno">262</tt> <a class="py-toggle" href="#" id="AttAuthorityClient.__setSignatureHandler-toggle" onclick="return toggle('AttAuthorityClient.__setSignatureHandler');">-</a><tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">def</tt> <a class="py-def-name" href="ndg.security.common.AttAuthority.AttAuthorityClient-class.html#__setSignatureHandler">__setSignatureHandler</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">signatureHandler</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
796</div><div id="AttAuthorityClient.__setSignatureHandler-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="AttAuthorityClient.__setSignatureHandler-expanded"><a name="L263"></a><tt class="py-lineno">263</tt>  <tt class="py-line">        <tt class="py-docstring">"""Set SignatureHandler object property method - set to None to for no</tt> </tt>
797<a name="L264"></a><tt class="py-lineno">264</tt>  <tt class="py-line"><tt class="py-docstring">        digital signature and verification"""</tt> </tt>
798<a name="L265"></a><tt class="py-lineno">265</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt id="link-96" class="py-name" targets="Variable ndg.security.common.AttAuthority.AttAuthorityClient.signatureHandler=ndg.security.common.AttAuthority.AttAuthorityClient-class.html#signatureHandler,Variable ndg.security.common.SessionMgr.SessionMgrClient.signatureHandler=ndg.security.common.SessionMgr.SessionMgrClient-class.html#signatureHandler,Variable ndg.security.common.ca.CertificateAuthorityClient.signatureHandler=ndg.security.common.ca.CertificateAuthorityClient-class.html#signatureHandler,Variable ndg.security.server.twisted.WSSecurityHandler.signatureHandler=ndg.security.server.twisted.WSSecurityHandler-class.html#signatureHandler"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.signatureHandler
799ndg.security.common.SessionMgr.SessionMgrClient.signatureHandler
800ndg.security.common.ca.CertificateAuthorityClient.signatureHandler
801ndg.security.server.twisted.WSSecurityHandler.signatureHandler" class="py-name" href="#" onclick="return doclink('link-96', 'signatureHandler', 'link-96');">signatureHandler</a></tt> <tt class="py-keyword">is</tt> <tt class="py-keyword">not</tt> <tt class="py-name">None</tt> <tt class="py-keyword">and</tt> \ </tt>
802<a name="L266"></a><tt class="py-lineno">266</tt>  <tt class="py-line">           <tt class="py-keyword">not</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt id="link-97" class="py-name"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.signatureHandler
803ndg.security.common.SessionMgr.SessionMgrClient.signatureHandler
804ndg.security.common.ca.CertificateAuthorityClient.signatureHandler
805ndg.security.server.twisted.WSSecurityHandler.signatureHandler" class="py-name" href="#" onclick="return doclink('link-97', 'signatureHandler', 'link-96');">signatureHandler</a></tt><tt class="py-op">,</tt> <tt id="link-98" class="py-name"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.signatureHandler
806ndg.security.common.SessionMgr.SessionMgrClient.signatureHandler
807ndg.security.common.ca.CertificateAuthorityClient.signatureHandler
808ndg.security.server.twisted.WSSecurityHandler.signatureHandler" class="py-name" href="#" onclick="return doclink('link-98', 'signatureHandler', 'link-96');">signatureHandler</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
809<a name="L267"></a><tt class="py-lineno">267</tt>  <tt class="py-line">            <tt class="py-keyword">raise</tt> <tt class="py-name">AttributeError</tt><tt class="py-op">,</tt> \ </tt>
810<a name="L268"></a><tt class="py-lineno">268</tt>  <tt class="py-line">    <tt class="py-string">"Signature Handler must be %s type or None for no message security"</tt> <tt class="py-op">%</tt> \ </tt>
811<a name="L269"></a><tt class="py-lineno">269</tt>  <tt class="py-line">        <tt class="py-string">"ndg.security.common.wssecurity.dom.SignatureHandler"</tt> </tt>
812<a name="L270"></a><tt class="py-lineno">270</tt>  <tt class="py-line">                             </tt>
813<a name="L271"></a><tt class="py-lineno">271</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__signatureHandler</tt> <tt class="py-op">=</tt> <tt id="link-99" class="py-name"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.signatureHandler
814ndg.security.common.SessionMgr.SessionMgrClient.signatureHandler
815ndg.security.common.ca.CertificateAuthorityClient.signatureHandler
816ndg.security.server.twisted.WSSecurityHandler.signatureHandler" class="py-name" href="#" onclick="return doclink('link-99', 'signatureHandler', 'link-96');">signatureHandler</a></tt> </tt>
817</div><a name="L272"></a><tt class="py-lineno">272</tt>  <tt class="py-line">     </tt>
818<a name="L273"></a><tt class="py-lineno">273</tt>  <tt class="py-line"> </tt>
819<a name="L274"></a><tt class="py-lineno">274</tt>  <tt class="py-line">    <tt class="py-comment">#_________________________________________________________________________</tt> </tt>
820<a name="AttAuthorityClient.__getSignatureHandler"></a><div id="AttAuthorityClient.__getSignatureHandler-def"><a name="L275"></a><tt class="py-lineno">275</tt> <a class="py-toggle" href="#" id="AttAuthorityClient.__getSignatureHandler-toggle" onclick="return toggle('AttAuthorityClient.__getSignatureHandler');">-</a><tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">def</tt> <a class="py-def-name" href="ndg.security.common.AttAuthority.AttAuthorityClient-class.html#__getSignatureHandler">__getSignatureHandler</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
821</div><div id="AttAuthorityClient.__getSignatureHandler-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="AttAuthorityClient.__getSignatureHandler-expanded"><a name="L276"></a><tt class="py-lineno">276</tt>  <tt class="py-line">        <tt class="py-docstring">"Get SignatureHandler object property method"</tt> </tt>
822<a name="L277"></a><tt class="py-lineno">277</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__signatureHandler</tt> </tt>
823</div><a name="L278"></a><tt class="py-lineno">278</tt>  <tt class="py-line">     </tt>
824<a name="L279"></a><tt class="py-lineno">279</tt>  <tt class="py-line">    <tt id="link-100" class="py-name"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.signatureHandler
825ndg.security.common.SessionMgr.SessionMgrClient.signatureHandler
826ndg.security.common.ca.CertificateAuthorityClient.signatureHandler
827ndg.security.server.twisted.WSSecurityHandler.signatureHandler" class="py-name" href="#" onclick="return doclink('link-100', 'signatureHandler', 'link-96');">signatureHandler</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt class="py-name">fget</tt><tt class="py-op">=</tt><tt id="link-101" class="py-name" targets="Method ndg.security.common.AttAuthority.AttAuthorityClient.__getSignatureHandler()=ndg.security.common.AttAuthority.AttAuthorityClient-class.html#__getSignatureHandler,Method ndg.security.common.SessionMgr.SessionMgrClient.__getSignatureHandler()=ndg.security.common.SessionMgr.SessionMgrClient-class.html#__getSignatureHandler,Method ndg.security.common.ca.CertificateAuthorityClient.__getSignatureHandler()=ndg.security.common.ca.CertificateAuthorityClient-class.html#__getSignatureHandler"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.__getSignatureHandler
828ndg.security.common.SessionMgr.SessionMgrClient.__getSignatureHandler
829ndg.security.common.ca.CertificateAuthorityClient.__getSignatureHandler" class="py-name" href="#" onclick="return doclink('link-101', '__getSignatureHandler', 'link-101');">__getSignatureHandler</a></tt><tt class="py-op">,</tt> </tt>
830<a name="L280"></a><tt class="py-lineno">280</tt>  <tt class="py-line">                                <tt class="py-name">fset</tt><tt class="py-op">=</tt><tt id="link-102" class="py-name" targets="Method ndg.security.common.AttAuthority.AttAuthorityClient.__setSignatureHandler()=ndg.security.common.AttAuthority.AttAuthorityClient-class.html#__setSignatureHandler,Method ndg.security.common.SessionMgr.SessionMgrClient.__setSignatureHandler()=ndg.security.common.SessionMgr.SessionMgrClient-class.html#__setSignatureHandler"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.__setSignatureHandler
831ndg.security.common.SessionMgr.SessionMgrClient.__setSignatureHandler" class="py-name" href="#" onclick="return doclink('link-102', '__setSignatureHandler', 'link-102');">__setSignatureHandler</a></tt><tt class="py-op">,</tt> </tt>
832<a name="L281"></a><tt class="py-lineno">281</tt>  <tt class="py-line">                                <tt class="py-name">doc</tt><tt class="py-op">=</tt><tt class="py-string">"SignatureHandler object"</tt><tt class="py-op">)</tt> </tt>
833<a name="L282"></a><tt class="py-lineno">282</tt>  <tt class="py-line">     </tt>
834<a name="L283"></a><tt class="py-lineno">283</tt>  <tt class="py-line">         </tt>
835<a name="L284"></a><tt class="py-lineno">284</tt>  <tt class="py-line">    <tt class="py-comment">#_________________________________________________________________________</tt> </tt>
836<a name="AttAuthorityClient.initService"></a><div id="AttAuthorityClient.initService-def"><a name="L285"></a><tt class="py-lineno">285</tt> <a class="py-toggle" href="#" id="AttAuthorityClient.initService-toggle" onclick="return toggle('AttAuthorityClient.initService');">-</a><tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">def</tt> <a class="py-def-name" href="ndg.security.common.AttAuthority.AttAuthorityClient-class.html#initService">initService</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">uri</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
837</div><div id="AttAuthorityClient.initService-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="AttAuthorityClient.initService-expanded"><a name="L286"></a><tt class="py-lineno">286</tt>  <tt class="py-line">        <tt class="py-docstring">"""Set the WS proxy for the Attribute Authority</tt> </tt>
838<a name="L287"></a><tt class="py-lineno">287</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
839<a name="L288"></a><tt class="py-lineno">288</tt>  <tt class="py-line"><tt class="py-docstring">        @type uri: string</tt> </tt>
840<a name="L289"></a><tt class="py-lineno">289</tt>  <tt class="py-line"><tt class="py-docstring">        @param uri: URI for service to invoke"""</tt> </tt>
841<a name="L290"></a><tt class="py-lineno">290</tt>  <tt class="py-line">         </tt>
842<a name="L291"></a><tt class="py-lineno">291</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt id="link-103" class="py-name"><a title="ndg.security.client.LogClient.LogClient.uri
843ndg.security.common.AttAuthority.AttAuthorityClient.uri
844ndg.security.common.SessionMgr.SessionMgrClient.uri
845ndg.security.common.ca.CertificateAuthorityClient.uri" class="py-name" href="#" onclick="return doclink('link-103', 'uri', 'link-35');">uri</a></tt><tt class="py-op">:</tt> </tt>
846<a name="L292"></a><tt class="py-lineno">292</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-104" class="py-name"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.__setURI
847ndg.security.common.SessionMgr.SessionMgrClient.__setURI
848ndg.security.common.ca.CertificateAuthorityClient.__setURI" class="py-name" href="#" onclick="return doclink('link-104', '__setURI', 'link-36');">__setURI</a></tt><tt class="py-op">(</tt><tt id="link-105" class="py-name"><a title="ndg.security.client.LogClient.LogClient.uri
849ndg.security.common.AttAuthority.AttAuthorityClient.uri
850ndg.security.common.SessionMgr.SessionMgrClient.uri
851ndg.security.common.ca.CertificateAuthorityClient.uri" class="py-name" href="#" onclick="return doclink('link-105', 'uri', 'link-35');">uri</a></tt><tt class="py-op">)</tt> </tt>
852<a name="L293"></a><tt class="py-lineno">293</tt>  <tt class="py-line"> </tt>
853<a name="L294"></a><tt class="py-lineno">294</tt>  <tt class="py-line">        <tt class="py-comment"># WS-Security Signature handler object is passed to binding</tt> </tt>
854<a name="L295"></a><tt class="py-lineno">295</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
855<a name="L296"></a><tt class="py-lineno">296</tt>  <tt class="py-line">            <tt class="py-name">locator</tt> <tt class="py-op">=</tt> <tt id="link-106" class="py-name"><a title="ndg.security.common.AttAuthority.AttAuthority_services.AttAuthorityServiceLocator" class="py-name" href="#" onclick="return doclink('link-106', 'AttAuthorityServiceLocator', 'link-3');">AttAuthorityServiceLocator</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
856<a name="L297"></a><tt class="py-lineno">297</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__srv</tt> <tt class="py-op">=</tt> <tt class="py-name">locator</tt><tt class="py-op">.</tt><tt id="link-107" class="py-name" targets="Method ndg.security.common.AttAuthority.AttAuthority_services.AttAuthorityServiceLocator.getAttAuthority()=ndg.security.common.AttAuthority.AttAuthority_services.AttAuthorityServiceLocator-class.html#getAttAuthority"><a title="ndg.security.common.AttAuthority.AttAuthority_services.AttAuthorityServiceLocator.getAttAuthority" class="py-name" href="#" onclick="return doclink('link-107', 'getAttAuthority', 'link-107');">getAttAuthority</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__uri</tt><tt class="py-op">,</tt>  </tt>
857<a name="L298"></a><tt class="py-lineno">298</tt>  <tt class="py-line">                                         <tt class="py-name">sig_handler</tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__signatureHandler</tt><tt class="py-op">,</tt> </tt>
858<a name="L299"></a><tt class="py-lineno">299</tt>  <tt class="py-line">                                         <tt class="py-name">tracefile</tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__tracefile</tt><tt class="py-op">,</tt> </tt>
859<a name="L300"></a><tt class="py-lineno">300</tt>  <tt class="py-line">                                         <tt class="py-name">transport</tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_transport</tt><tt class="py-op">,</tt> </tt>
860<a name="L301"></a><tt class="py-lineno">301</tt>  <tt class="py-line">                                         <tt class="py-name">transdict</tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_transdict</tt><tt class="py-op">)</tt> </tt>
861<a name="L302"></a><tt class="py-lineno">302</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt> <tt id="link-108" class="py-name"><a title="httplib.HTTPResponse" class="py-name" href="#" onclick="return doclink('link-108', 'HTTPResponse', 'link-1');">HTTPResponse</a></tt><tt class="py-op">,</tt> <tt class="py-name">e</tt><tt class="py-op">:</tt> </tt>
862<a name="L303"></a><tt class="py-lineno">303</tt>  <tt class="py-line">            <tt class="py-keyword">raise</tt> <tt id="link-109" class="py-name"><a title="ndg.security.common.AttAuthority.AttAuthorityClientError" class="py-name" href="#" onclick="return doclink('link-109', 'AttAuthorityClientError', 'link-56');">AttAuthorityClientError</a></tt><tt class="py-op">,</tt> \ </tt>
863<a name="L304"></a><tt class="py-lineno">304</tt>  <tt class="py-line">                <tt class="py-string">"Error initialising service for \"%s\": %s %s"</tt> <tt class="py-op">%</tt> \ </tt>
864<a name="L305"></a><tt class="py-lineno">305</tt>  <tt class="py-line">                <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__uri</tt><tt class="py-op">,</tt> <tt class="py-name">e</tt><tt class="py-op">.</tt><tt class="py-name">status</tt><tt class="py-op">,</tt> <tt class="py-name">e</tt><tt class="py-op">.</tt><tt class="py-name">reason</tt><tt class="py-op">)</tt> </tt>
865</div><a name="L306"></a><tt class="py-lineno">306</tt>  <tt class="py-line"> </tt>
866<a name="L307"></a><tt class="py-lineno">307</tt>  <tt class="py-line">                                     </tt>
867<a name="L308"></a><tt class="py-lineno">308</tt>  <tt class="py-line">    <tt class="py-comment">#_________________________________________________________________________</tt> </tt>
868<a name="AttAuthorityClient.getHostInfo"></a><div id="AttAuthorityClient.getHostInfo-def"><a name="L309"></a><tt class="py-lineno">309</tt> <a class="py-toggle" href="#" id="AttAuthorityClient.getHostInfo-toggle" onclick="return toggle('AttAuthorityClient.getHostInfo');">-</a><tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">def</tt> <a class="py-def-name" href="ndg.security.common.AttAuthority.AttAuthorityClient-class.html#getHostInfo">getHostInfo</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
869</div><div id="AttAuthorityClient.getHostInfo-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="AttAuthorityClient.getHostInfo-expanded"><a name="L310"></a><tt class="py-lineno">310</tt>  <tt class="py-line">        <tt class="py-docstring">"""Get host information for the data provider which the </tt> </tt>
870<a name="L311"></a><tt class="py-lineno">311</tt>  <tt class="py-line"><tt class="py-docstring">        Attribute Authority represents</tt> </tt>
871<a name="L312"></a><tt class="py-lineno">312</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
872<a name="L313"></a><tt class="py-lineno">313</tt>  <tt class="py-line"><tt class="py-docstring">        @rtype: dict</tt> </tt>
873<a name="L314"></a><tt class="py-lineno">314</tt>  <tt class="py-line"><tt class="py-docstring">        @return: dictionary of host information derived from the Attribute</tt> </tt>
874<a name="L315"></a><tt class="py-lineno">315</tt>  <tt class="py-line"><tt class="py-docstring">        Authority's map configuration</tt> </tt>
875<a name="L316"></a><tt class="py-lineno">316</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
876<a name="L317"></a><tt class="py-lineno">317</tt>  <tt class="py-line">     </tt>
877<a name="L318"></a><tt class="py-lineno">318</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__srv</tt><tt class="py-op">:</tt> </tt>
878<a name="L319"></a><tt class="py-lineno">319</tt>  <tt class="py-line">            <tt class="py-keyword">raise</tt> <tt class="py-name">InvalidSessionMgrClientCtx</tt><tt class="py-op">(</tt>\ </tt>
879<a name="L320"></a><tt class="py-lineno">320</tt>  <tt class="py-line">                                        <tt class="py-string">"Client binding is not initialised"</tt><tt class="py-op">)</tt> </tt>
880<a name="L321"></a><tt class="py-lineno">321</tt>  <tt class="py-line"> </tt>
881<a name="L322"></a><tt class="py-lineno">322</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
882<a name="L323"></a><tt class="py-lineno">323</tt>  <tt class="py-line">            <tt class="py-comment"># Convert return tuple into list to enable use of pop() later</tt> </tt>
883<a name="L324"></a><tt class="py-lineno">324</tt>  <tt class="py-line"><tt class="py-comment"></tt>            <tt class="py-name">response</tt> <tt class="py-op">=</tt> <tt class="py-name">list</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__srv</tt><tt class="py-op">.</tt><tt id="link-110" class="py-name" targets="Method ndg.security.common.AttAuthority.AttAuthorityClient.getHostInfo()=ndg.security.common.AttAuthority.AttAuthorityClient-class.html#getHostInfo,Method ndg.security.common.AttAuthority.AttAuthority_services.AttAuthorityBindingSOAP.getHostInfo()=ndg.security.common.AttAuthority.AttAuthority_services.AttAuthorityBindingSOAP-class.html#getHostInfo"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.getHostInfo
884ndg.security.common.AttAuthority.AttAuthority_services.AttAuthorityBindingSOAP.getHostInfo" class="py-name" href="#" onclick="return doclink('link-110', 'getHostInfo', 'link-110');">getHostInfo</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
885<a name="L325"></a><tt class="py-lineno">325</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt> <tt class="py-name">httplib</tt><tt class="py-op">.</tt><tt class="py-name">BadStatusLine</tt><tt class="py-op">,</tt> <tt class="py-name">e</tt><tt class="py-op">:</tt> </tt>
886<a name="L326"></a><tt class="py-lineno">326</tt>  <tt class="py-line">            <tt class="py-keyword">raise</tt> <tt id="link-111" class="py-name"><a title="ndg.security.common.AttAuthority.AttAuthorityClientError" class="py-name" href="#" onclick="return doclink('link-111', 'AttAuthorityClientError', 'link-56');">AttAuthorityClientError</a></tt><tt class="py-op">,</tt> <tt class="py-string">"HTTP bad status line: %s"</tt> <tt class="py-op">%</tt> <tt class="py-name">e</tt> </tt>
887<a name="L327"></a><tt class="py-lineno">327</tt>  <tt class="py-line"> </tt>
888<a name="L328"></a><tt class="py-lineno">328</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt> <tt class="py-name">Exception</tt><tt class="py-op">,</tt> <tt class="py-name">e</tt><tt class="py-op">:</tt> </tt>
889<a name="L329"></a><tt class="py-lineno">329</tt>  <tt class="py-line">            <tt class="py-comment"># Try to detect exception type from SOAP fault message</tt> </tt>
890<a name="L330"></a><tt class="py-lineno">330</tt>  <tt class="py-line"><tt class="py-comment"></tt>            <tt class="py-name">errMsg</tt> <tt class="py-op">=</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">e</tt><tt class="py-op">)</tt> </tt>
891<a name="L331"></a><tt class="py-lineno">331</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">excep</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-112" class="py-name"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.excepMap
892ndg.security.common.SessionMgr.SessionMgrClient.excepMap" class="py-name" href="#" onclick="return doclink('link-112', 'excepMap', 'link-29');">excepMap</a></tt><tt class="py-op">:</tt> </tt>
893<a name="L332"></a><tt class="py-lineno">332</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">excep</tt> <tt class="py-keyword">in</tt> <tt class="py-name">errMsg</tt><tt class="py-op">:</tt> </tt>
894<a name="L333"></a><tt class="py-lineno">333</tt>  <tt class="py-line">                    <tt class="py-keyword">raise</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-113" class="py-name"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.excepMap
895ndg.security.common.SessionMgr.SessionMgrClient.excepMap" class="py-name" href="#" onclick="return doclink('link-113', 'excepMap', 'link-29');">excepMap</a></tt><tt class="py-op">[</tt><tt class="py-name">excep</tt><tt class="py-op">]</tt> </tt>
896<a name="L334"></a><tt class="py-lineno">334</tt>  <tt class="py-line">                 </tt>
897<a name="L335"></a><tt class="py-lineno">335</tt>  <tt class="py-line">            <tt class="py-comment"># Catch all    </tt> </tt>
898<a name="L336"></a><tt class="py-lineno">336</tt>  <tt class="py-line"><tt class="py-comment"></tt>            <tt class="py-keyword">raise</tt> <tt class="py-name">e</tt> </tt>
899<a name="L337"></a><tt class="py-lineno">337</tt>  <tt class="py-line"> </tt>
900<a name="L338"></a><tt class="py-lineno">338</tt>  <tt class="py-line">        <tt class="py-comment"># Unpack response into dict</tt> </tt>
901<a name="L339"></a><tt class="py-lineno">339</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">hostInfoKw</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-string">'aaURI'</tt><tt class="py-op">,</tt> </tt>
902<a name="L340"></a><tt class="py-lineno">340</tt>  <tt class="py-line">                      <tt class="py-string">'aaDN'</tt><tt class="py-op">,</tt> </tt>
903<a name="L341"></a><tt class="py-lineno">341</tt>  <tt class="py-line">                      <tt class="py-string">'loginURI'</tt><tt class="py-op">,</tt> </tt>
904<a name="L342"></a><tt class="py-lineno">342</tt>  <tt class="py-line">                      <tt class="py-string">'loginServerDN'</tt><tt class="py-op">,</tt> </tt>
905<a name="L343"></a><tt class="py-lineno">343</tt>  <tt class="py-line">                      <tt class="py-string">'loginRequestServerDN'</tt><tt class="py-op">]</tt> </tt>
906<a name="L344"></a><tt class="py-lineno">344</tt>  <tt class="py-line">        <tt class="py-name">hostInfoKw</tt><tt class="py-op">.</tt><tt class="py-name">reverse</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
907<a name="L345"></a><tt class="py-lineno">345</tt>  <tt class="py-line">        <tt id="link-114" class="py-name" targets="Variable ndg.security.server.AttAuthority.AttAuthority.hostInfo=ndg.security.server.AttAuthority.AttAuthority-class.html#hostInfo"><a title="ndg.security.server.AttAuthority.AttAuthority.hostInfo" class="py-name" href="#" onclick="return doclink('link-114', 'hostInfo', 'link-114');">hostInfo</a></tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-name">response</tt><tt class="py-op">.</tt><tt id="link-115" class="py-name" targets="Method ndg.security.common.X509.X509Stack.pop()=ndg.security.common.X509.X509Stack-class.html#pop,Method ndg.security.common.wssecurity.WSSecurityConfig.pop()=ndg.security.common.wssecurity.WSSecurityConfig-class.html#pop"><a title="ndg.security.common.X509.X509Stack.pop
908ndg.security.common.wssecurity.WSSecurityConfig.pop" class="py-name" href="#" onclick="return doclink('link-115', 'pop', 'link-115');">pop</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> \ </tt>
909<a name="L346"></a><tt class="py-lineno">346</tt>  <tt class="py-line">                    <tt class="py-name">dict</tt><tt class="py-op">(</tt><tt class="py-op">[</tt><tt class="py-op">(</tt><tt class="py-name">k</tt><tt class="py-op">,</tt> <tt class="py-name">response</tt><tt class="py-op">.</tt><tt id="link-116" class="py-name"><a title="ndg.security.common.X509.X509Stack.pop
910ndg.security.common.wssecurity.WSSecurityConfig.pop" class="py-name" href="#" onclick="return doclink('link-116', 'pop', 'link-115');">pop</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-keyword">for</tt> <tt class="py-name">k</tt> <tt class="py-keyword">in</tt> <tt class="py-name">hostInfoKw</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">}</tt> </tt>
911<a name="L347"></a><tt class="py-lineno">347</tt>  <tt class="py-line"> </tt>
912<a name="L348"></a><tt class="py-lineno">348</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-117" class="py-name"><a title="ndg.security.server.AttAuthority.AttAuthority.hostInfo" class="py-name" href="#" onclick="return doclink('link-117', 'hostInfo', 'link-114');">hostInfo</a></tt> </tt>
913</div><a name="L349"></a><tt class="py-lineno">349</tt>  <tt class="py-line"> </tt>
914<a name="L350"></a><tt class="py-lineno">350</tt>  <tt class="py-line">                                     </tt>
915<a name="L351"></a><tt class="py-lineno">351</tt>  <tt class="py-line">    <tt class="py-comment">#_________________________________________________________________________</tt> </tt>
916<a name="AttAuthorityClient.getTrustedHostInfo"></a><div id="AttAuthorityClient.getTrustedHostInfo-def"><a name="L352"></a><tt class="py-lineno">352</tt> <a class="py-toggle" href="#" id="AttAuthorityClient.getTrustedHostInfo-toggle" onclick="return toggle('AttAuthorityClient.getTrustedHostInfo');">-</a><tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">def</tt> <a class="py-def-name" href="ndg.security.common.AttAuthority.AttAuthorityClient-class.html#getTrustedHostInfo">getTrustedHostInfo</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">role</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
917</div><div id="AttAuthorityClient.getTrustedHostInfo-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="AttAuthorityClient.getTrustedHostInfo-expanded"><a name="L353"></a><tt class="py-lineno">353</tt>  <tt class="py-line">        <tt class="py-docstring">"""Get list of trusted hosts for an Attribute Authority</tt> </tt>
918<a name="L354"></a><tt class="py-lineno">354</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
919<a name="L355"></a><tt class="py-lineno">355</tt>  <tt class="py-line"><tt class="py-docstring">        @type role: string</tt> </tt>
920<a name="L356"></a><tt class="py-lineno">356</tt>  <tt class="py-line"><tt class="py-docstring">        @param role: get information for trusted hosts that have a mapping to</tt> </tt>
921<a name="L357"></a><tt class="py-lineno">357</tt>  <tt class="py-line"><tt class="py-docstring">        this role</tt> </tt>
922<a name="L358"></a><tt class="py-lineno">358</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
923<a name="L359"></a><tt class="py-lineno">359</tt>  <tt class="py-line"><tt class="py-docstring">        @rtype: dict</tt> </tt>
924<a name="L360"></a><tt class="py-lineno">360</tt>  <tt class="py-line"><tt class="py-docstring">        @return: dictionary of host information indexed by hostname derived </tt> </tt>
925<a name="L361"></a><tt class="py-lineno">361</tt>  <tt class="py-line"><tt class="py-docstring">        from the map configuration"""</tt> </tt>
926<a name="L362"></a><tt class="py-lineno">362</tt>  <tt class="py-line">     </tt>
927<a name="L363"></a><tt class="py-lineno">363</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__srv</tt><tt class="py-op">:</tt> </tt>
928<a name="L364"></a><tt class="py-lineno">364</tt>  <tt class="py-line">            <tt class="py-keyword">raise</tt> <tt class="py-name">InvalidSessionMgrClientCtx</tt><tt class="py-op">(</tt>\ </tt>
929<a name="L365"></a><tt class="py-lineno">365</tt>  <tt class="py-line">                                        <tt class="py-string">"Client binding is not initialised"</tt><tt class="py-op">)</tt> </tt>
930<a name="L366"></a><tt class="py-lineno">366</tt>  <tt class="py-line">             </tt>
931<a name="L367"></a><tt class="py-lineno">367</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
932<a name="L368"></a><tt class="py-lineno">368</tt>  <tt class="py-line">            <tt class="py-name">trustedHosts</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__srv</tt><tt class="py-op">.</tt><tt id="link-118" class="py-name" targets="Method ndg.security.common.AttAuthority.AttAuthorityClient.getTrustedHostInfo()=ndg.security.common.AttAuthority.AttAuthorityClient-class.html#getTrustedHostInfo,Method ndg.security.common.AttAuthority.AttAuthority_services.AttAuthorityBindingSOAP.getTrustedHostInfo()=ndg.security.common.AttAuthority.AttAuthority_services.AttAuthorityBindingSOAP-class.html#getTrustedHostInfo,Method ndg.security.server.AttAuthority.AttAuthority.getTrustedHostInfo()=ndg.security.server.AttAuthority.AttAuthority-class.html#getTrustedHostInfo"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.getTrustedHostInfo
933ndg.security.common.AttAuthority.AttAuthority_services.AttAuthorityBindingSOAP.getTrustedHostInfo
934ndg.security.server.AttAuthority.AttAuthority.getTrustedHostInfo" class="py-name" href="#" onclick="return doclink('link-118', 'getTrustedHostInfo', 'link-118');">getTrustedHostInfo</a></tt><tt class="py-op">(</tt><tt class="py-name">role</tt><tt class="py-op">)</tt> </tt>
935<a name="L369"></a><tt class="py-lineno">369</tt>  <tt class="py-line"> </tt>
936<a name="L370"></a><tt class="py-lineno">370</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt> <tt class="py-name">httplib</tt><tt class="py-op">.</tt><tt class="py-name">BadStatusLine</tt><tt class="py-op">,</tt> <tt class="py-name">e</tt><tt class="py-op">:</tt> </tt>
937<a name="L371"></a><tt class="py-lineno">371</tt>  <tt class="py-line">            <tt class="py-keyword">raise</tt> <tt id="link-119" class="py-name"><a title="ndg.security.common.AttAuthority.AttAuthorityClientError" class="py-name" href="#" onclick="return doclink('link-119', 'AttAuthorityClientError', 'link-56');">AttAuthorityClientError</a></tt><tt class="py-op">,</tt> <tt class="py-string">"HTTP bad status line: %s"</tt> <tt class="py-op">%</tt> <tt class="py-name">e</tt> </tt>
938<a name="L372"></a><tt class="py-lineno">372</tt>  <tt class="py-line"> </tt>
939<a name="L373"></a><tt class="py-lineno">373</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt> <tt class="py-name">Exception</tt><tt class="py-op">,</tt> <tt class="py-name">e</tt><tt class="py-op">:</tt> </tt>
940<a name="L374"></a><tt class="py-lineno">374</tt>  <tt class="py-line">            <tt class="py-comment"># Try to detect exception type from SOAP fault message</tt> </tt>
941<a name="L375"></a><tt class="py-lineno">375</tt>  <tt class="py-line"><tt class="py-comment"></tt>            <tt class="py-name">errMsg</tt> <tt class="py-op">=</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">e</tt><tt class="py-op">)</tt> </tt>
942<a name="L376"></a><tt class="py-lineno">376</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">excep</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-120" class="py-name"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.excepMap
943ndg.security.common.SessionMgr.SessionMgrClient.excepMap" class="py-name" href="#" onclick="return doclink('link-120', 'excepMap', 'link-29');">excepMap</a></tt><tt class="py-op">:</tt> </tt>
944<a name="L377"></a><tt class="py-lineno">377</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">excep</tt> <tt class="py-keyword">in</tt> <tt class="py-name">errMsg</tt><tt class="py-op">:</tt> </tt>
945<a name="L378"></a><tt class="py-lineno">378</tt>  <tt class="py-line">                    <tt class="py-keyword">raise</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-121" class="py-name"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.excepMap
946ndg.security.common.SessionMgr.SessionMgrClient.excepMap" class="py-name" href="#" onclick="return doclink('link-121', 'excepMap', 'link-29');">excepMap</a></tt><tt class="py-op">[</tt><tt class="py-name">excep</tt><tt class="py-op">]</tt> </tt>
947<a name="L379"></a><tt class="py-lineno">379</tt>  <tt class="py-line">                 </tt>
948<a name="L380"></a><tt class="py-lineno">380</tt>  <tt class="py-line">            <tt class="py-comment"># Catch all    </tt> </tt>
949<a name="L381"></a><tt class="py-lineno">381</tt>  <tt class="py-line"><tt class="py-comment"></tt>            <tt class="py-keyword">raise</tt> <tt class="py-name">e</tt> </tt>
950<a name="L382"></a><tt class="py-lineno">382</tt>  <tt class="py-line"> </tt>
951<a name="L383"></a><tt class="py-lineno">383</tt>  <tt class="py-line">        <tt class="py-comment"># Convert into dictionary form as used by AttAuthority class</tt> </tt>
952<a name="L384"></a><tt class="py-lineno">384</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt id="link-122" class="py-name" targets="Variable ndg.security.common.CredWallet.CredWalletAttributeRequestDenied.trustedHostInfo=ndg.security.common.CredWallet.CredWalletAttributeRequestDenied-class.html#trustedHostInfo"><a title="ndg.security.common.CredWallet.CredWalletAttributeRequestDenied.trustedHostInfo" class="py-name" href="#" onclick="return doclink('link-122', 'trustedHostInfo', 'link-122');">trustedHostInfo</a></tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
953<a name="L385"></a><tt class="py-lineno">385</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">host</tt> <tt class="py-keyword">in</tt> <tt class="py-name">trustedHosts</tt><tt class="py-op">:</tt> </tt>
954<a name="L386"></a><tt class="py-lineno">386</tt>  <tt class="py-line">            <tt class="py-name">hostname</tt> <tt class="py-op">=</tt> <tt class="py-name">host</tt><tt class="py-op">.</tt><tt class="py-name">get_element_hostname</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
955<a name="L387"></a><tt class="py-lineno">387</tt>  <tt class="py-line">             </tt>
956<a name="L388"></a><tt class="py-lineno">388</tt>  <tt class="py-line">            <tt id="link-123" class="py-name"><a title="ndg.security.common.CredWallet.CredWalletAttributeRequestDenied.trustedHostInfo" class="py-name" href="#" onclick="return doclink('link-123', 'trustedHostInfo', 'link-122');">trustedHostInfo</a></tt><tt class="py-op">[</tt><tt class="py-name">hostname</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> \ </tt>
957<a name="L389"></a><tt class="py-lineno">389</tt>  <tt class="py-line">            <tt class="py-op">{</tt> </tt>
958<a name="L390"></a><tt class="py-lineno">390</tt>  <tt class="py-line">                <tt class="py-string">'aaURI'</tt><tt class="py-op">:</tt> <tt class="py-name">host</tt><tt class="py-op">.</tt><tt class="py-name">AaURI</tt><tt class="py-op">,</tt> </tt>
959<a name="L391"></a><tt class="py-lineno">391</tt>  <tt class="py-line">                <tt class="py-string">'aaDN'</tt><tt class="py-op">:</tt> <tt class="py-name">host</tt><tt class="py-op">.</tt><tt class="py-name">AaDN</tt><tt class="py-op">,</tt> </tt>
960<a name="L392"></a><tt class="py-lineno">392</tt>  <tt class="py-line">                <tt class="py-string">'loginURI'</tt><tt class="py-op">:</tt> <tt class="py-name">host</tt><tt class="py-op">.</tt><tt class="py-name">LoginURI</tt><tt class="py-op">,</tt> </tt>
961<a name="L393"></a><tt class="py-lineno">393</tt>  <tt class="py-line">                <tt class="py-string">'loginServerDN'</tt><tt class="py-op">:</tt> <tt class="py-name">host</tt><tt class="py-op">.</tt><tt class="py-name">LoginServerDN</tt><tt class="py-op">,</tt> </tt>
962<a name="L394"></a><tt class="py-lineno">394</tt>  <tt class="py-line">                <tt class="py-string">'loginRequestServerDN'</tt><tt class="py-op">:</tt> <tt class="py-name">host</tt><tt class="py-op">.</tt><tt class="py-name">LoginRequestServerDN</tt><tt class="py-op">,</tt> </tt>
963<a name="L395"></a><tt class="py-lineno">395</tt>  <tt class="py-line">                <tt class="py-string">'role'</tt><tt class="py-op">:</tt> <tt class="py-name">host</tt><tt class="py-op">.</tt><tt class="py-name">RoleList</tt> </tt>
964<a name="L396"></a><tt class="py-lineno">396</tt>  <tt class="py-line">            <tt class="py-op">}</tt> </tt>
965<a name="L397"></a><tt class="py-lineno">397</tt>  <tt class="py-line">             </tt>
966<a name="L398"></a><tt class="py-lineno">398</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-124" class="py-name"><a title="ndg.security.common.CredWallet.CredWalletAttributeRequestDenied.trustedHostInfo" class="py-name" href="#" onclick="return doclink('link-124', 'trustedHostInfo', 'link-122');">trustedHostInfo</a></tt> </tt>
967</div><a name="L399"></a><tt class="py-lineno">399</tt>  <tt class="py-line"> </tt>
968<a name="L400"></a><tt class="py-lineno">400</tt>  <tt class="py-line">                                     </tt>
969<a name="L401"></a><tt class="py-lineno">401</tt>  <tt class="py-line">    <tt class="py-comment">#_________________________________________________________________________</tt> </tt>
970<a name="AttAuthorityClient.getAllHostsInfo"></a><div id="AttAuthorityClient.getAllHostsInfo-def"><a name="L402"></a><tt class="py-lineno">402</tt> <a class="py-toggle" href="#" id="AttAuthorityClient.getAllHostsInfo-toggle" onclick="return toggle('AttAuthorityClient.getAllHostsInfo');">-</a><tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">def</tt> <a class="py-def-name" href="ndg.security.common.AttAuthority.AttAuthorityClient-class.html#getAllHostsInfo">getAllHostsInfo</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
971</div><div id="AttAuthorityClient.getAllHostsInfo-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="AttAuthorityClient.getAllHostsInfo-expanded"><a name="L403"></a><tt class="py-lineno">403</tt>  <tt class="py-line">        <tt class="py-docstring">"""Get list of all hosts for an Attribute Authority i.e. itself and</tt> </tt>
972<a name="L404"></a><tt class="py-lineno">404</tt>  <tt class="py-line"><tt class="py-docstring">        all the hosts it trusts</tt> </tt>
973<a name="L405"></a><tt class="py-lineno">405</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
974<a name="L406"></a><tt class="py-lineno">406</tt>  <tt class="py-line"><tt class="py-docstring">        @rtype: dict</tt> </tt>
975<a name="L407"></a><tt class="py-lineno">407</tt>  <tt class="py-line"><tt class="py-docstring">        @return: dictionary of host information indexed by hostname derived </tt> </tt>
976<a name="L408"></a><tt class="py-lineno">408</tt>  <tt class="py-line"><tt class="py-docstring">        from the map configuration"""</tt> </tt>
977<a name="L409"></a><tt class="py-lineno">409</tt>  <tt class="py-line">     </tt>
978<a name="L410"></a><tt class="py-lineno">410</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__srv</tt><tt class="py-op">:</tt> </tt>
979<a name="L411"></a><tt class="py-lineno">411</tt>  <tt class="py-line">            <tt class="py-keyword">raise</tt> <tt class="py-name">InvalidSessionMgrClientCtx</tt><tt class="py-op">(</tt>\ </tt>
980<a name="L412"></a><tt class="py-lineno">412</tt>  <tt class="py-line">                                        <tt class="py-string">"Client binding is not initialised"</tt><tt class="py-op">)</tt> </tt>
981<a name="L413"></a><tt class="py-lineno">413</tt>  <tt class="py-line"> </tt>
982<a name="L414"></a><tt class="py-lineno">414</tt>  <tt class="py-line">        <tt class="py-name">hosts</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__srv</tt><tt class="py-op">.</tt><tt id="link-125" class="py-name" targets="Method ndg.security.common.AttAuthority.AttAuthorityClient.getAllHostsInfo()=ndg.security.common.AttAuthority.AttAuthorityClient-class.html#getAllHostsInfo,Method ndg.security.common.AttAuthority.AttAuthority_services.AttAuthorityBindingSOAP.getAllHostsInfo()=ndg.security.common.AttAuthority.AttAuthority_services.AttAuthorityBindingSOAP-class.html#getAllHostsInfo"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.getAllHostsInfo
983ndg.security.common.AttAuthority.AttAuthority_services.AttAuthorityBindingSOAP.getAllHostsInfo" class="py-name" href="#" onclick="return doclink('link-125', 'getAllHostsInfo', 'link-125');">getAllHostsInfo</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
984<a name="L415"></a><tt class="py-lineno">415</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
985<a name="L416"></a><tt class="py-lineno">416</tt>  <tt class="py-line">            <tt class="py-name">hosts</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__srv</tt><tt class="py-op">.</tt><tt id="link-126" class="py-name"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.getAllHostsInfo
986ndg.security.common.AttAuthority.AttAuthority_services.AttAuthorityBindingSOAP.getAllHostsInfo" class="py-name" href="#" onclick="return doclink('link-126', 'getAllHostsInfo', 'link-125');">getAllHostsInfo</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
987<a name="L417"></a><tt class="py-lineno">417</tt>  <tt class="py-line"> </tt>
988<a name="L418"></a><tt class="py-lineno">418</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt> <tt class="py-name">httplib</tt><tt class="py-op">.</tt><tt class="py-name">BadStatusLine</tt><tt class="py-op">,</tt> <tt class="py-name">e</tt><tt class="py-op">:</tt> </tt>
989<a name="L419"></a><tt class="py-lineno">419</tt>  <tt class="py-line">            <tt class="py-keyword">raise</tt> <tt id="link-127" class="py-name"><a title="ndg.security.common.AttAuthority.AttAuthorityClientError" class="py-name" href="#" onclick="return doclink('link-127', 'AttAuthorityClientError', 'link-56');">AttAuthorityClientError</a></tt><tt class="py-op">,</tt> <tt class="py-string">"HTTP bad status line: %s"</tt> <tt class="py-op">%</tt> <tt class="py-name">e</tt> </tt>
990<a name="L420"></a><tt class="py-lineno">420</tt>  <tt class="py-line"> </tt>
991<a name="L421"></a><tt class="py-lineno">421</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt> <tt class="py-name">Exception</tt><tt class="py-op">,</tt> <tt class="py-name">e</tt><tt class="py-op">:</tt> </tt>
992<a name="L422"></a><tt class="py-lineno">422</tt>  <tt class="py-line">            <tt class="py-comment"># Try to detect exception type from SOAP fault message</tt> </tt>
993<a name="L423"></a><tt class="py-lineno">423</tt>  <tt class="py-line"><tt class="py-comment"></tt>            <tt class="py-name">errMsg</tt> <tt class="py-op">=</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">e</tt><tt class="py-op">)</tt> </tt>
994<a name="L424"></a><tt class="py-lineno">424</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">excep</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-128" class="py-name"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.excepMap
995ndg.security.common.SessionMgr.SessionMgrClient.excepMap" class="py-name" href="#" onclick="return doclink('link-128', 'excepMap', 'link-29');">excepMap</a></tt><tt class="py-op">:</tt> </tt>
996<a name="L425"></a><tt class="py-lineno">425</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">excep</tt> <tt class="py-keyword">in</tt> <tt class="py-name">errMsg</tt><tt class="py-op">:</tt> </tt>
997<a name="L426"></a><tt class="py-lineno">426</tt>  <tt class="py-line">                    <tt class="py-keyword">raise</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-129" class="py-name"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.excepMap
998ndg.security.common.SessionMgr.SessionMgrClient.excepMap" class="py-name" href="#" onclick="return doclink('link-129', 'excepMap', 'link-29');">excepMap</a></tt><tt class="py-op">[</tt><tt class="py-name">excep</tt><tt class="py-op">]</tt> </tt>
999<a name="L427"></a><tt class="py-lineno">427</tt>  <tt class="py-line">                 </tt>
1000<a name="L428"></a><tt class="py-lineno">428</tt>  <tt class="py-line">            <tt class="py-comment"># Catch all    </tt> </tt>
1001<a name="L429"></a><tt class="py-lineno">429</tt>  <tt class="py-line"><tt class="py-comment"></tt>            <tt class="py-keyword">raise</tt> <tt class="py-name">e</tt> </tt>
1002<a name="L430"></a><tt class="py-lineno">430</tt>  <tt class="py-line"> </tt>
1003<a name="L431"></a><tt class="py-lineno">431</tt>  <tt class="py-line">        <tt class="py-comment"># Convert into dictionary form as used by AttAuthority class</tt> </tt>
1004<a name="L432"></a><tt class="py-lineno">432</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">allHostInfo</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
1005<a name="L433"></a><tt class="py-lineno">433</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">host</tt> <tt class="py-keyword">in</tt> <tt class="py-name">hosts</tt><tt class="py-op">:</tt> </tt>
1006<a name="L434"></a><tt class="py-lineno">434</tt>  <tt class="py-line">            <tt class="py-name">hostname</tt> <tt class="py-op">=</tt> <tt class="py-name">host</tt><tt class="py-op">.</tt><tt class="py-name">Hostname</tt> </tt>
1007<a name="L435"></a><tt class="py-lineno">435</tt>  <tt class="py-line">            <tt class="py-name">allHostInfo</tt><tt class="py-op">[</tt><tt class="py-name">hostname</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> \ </tt>
1008<a name="L436"></a><tt class="py-lineno">436</tt>  <tt class="py-line">            <tt class="py-op">{</tt> </tt>
1009<a name="L437"></a><tt class="py-lineno">437</tt>  <tt class="py-line">                <tt class="py-string">'aaURI'</tt><tt class="py-op">:</tt> <tt class="py-name">host</tt><tt class="py-op">.</tt><tt class="py-name">AaURI</tt><tt class="py-op">,</tt> </tt>
1010<a name="L438"></a><tt class="py-lineno">438</tt>  <tt class="py-line">                <tt class="py-string">'aaDN'</tt><tt class="py-op">:</tt> <tt class="py-name">host</tt><tt class="py-op">.</tt><tt class="py-name">AaDN</tt><tt class="py-op">,</tt> </tt>
1011<a name="L439"></a><tt class="py-lineno">439</tt>  <tt class="py-line">                <tt class="py-string">'loginURI'</tt><tt class="py-op">:</tt> <tt class="py-name">host</tt><tt class="py-op">.</tt><tt class="py-name">LoginURI</tt><tt class="py-op">,</tt> </tt>
1012<a name="L440"></a><tt class="py-lineno">440</tt>  <tt class="py-line">                <tt class="py-string">'loginServerDN'</tt><tt class="py-op">:</tt> <tt class="py-name">host</tt><tt class="py-op">.</tt><tt class="py-name">LoginServerDN</tt><tt class="py-op">,</tt> </tt>
1013<a name="L441"></a><tt class="py-lineno">441</tt>  <tt class="py-line">                <tt class="py-string">'loginRequestServerDN'</tt><tt class="py-op">:</tt> <tt class="py-name">host</tt><tt class="py-op">.</tt><tt class="py-name">LoginRequestServerDN</tt><tt class="py-op">,</tt> </tt>
1014<a name="L442"></a><tt class="py-lineno">442</tt>  <tt class="py-line">                <tt class="py-string">'role'</tt><tt class="py-op">:</tt> <tt class="py-name">host</tt><tt class="py-op">.</tt><tt class="py-name">RoleList</tt> </tt>
1015<a name="L443"></a><tt class="py-lineno">443</tt>  <tt class="py-line">            <tt class="py-op">}</tt> </tt>
1016<a name="L444"></a><tt class="py-lineno">444</tt>  <tt class="py-line"> </tt>
1017<a name="L445"></a><tt class="py-lineno">445</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">allHostInfo</tt>    </tt>
1018</div><a name="L446"></a><tt class="py-lineno">446</tt>  <tt class="py-line"> </tt>
1019<a name="L447"></a><tt class="py-lineno">447</tt>  <tt class="py-line"> </tt>
1020<a name="L448"></a><tt class="py-lineno">448</tt>  <tt class="py-line">    <tt class="py-comment">#_________________________________________________________________________</tt> </tt>
1021<a name="AttAuthorityClient.getAttCert"></a><div id="AttAuthorityClient.getAttCert-def"><a name="L449"></a><tt class="py-lineno">449</tt> <a class="py-toggle" href="#" id="AttAuthorityClient.getAttCert-toggle" onclick="return toggle('AttAuthorityClient.getAttCert');">-</a><tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">def</tt> <a class="py-def-name" href="ndg.security.common.AttAuthority.AttAuthorityClient-class.html#getAttCert">getAttCert</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">userId</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">userCert</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">userAttCert</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
1022</div><div id="AttAuthorityClient.getAttCert-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="AttAuthorityClient.getAttCert-expanded"><a name="L450"></a><tt class="py-lineno">450</tt>  <tt class="py-line">        <tt class="py-docstring">"""Request attribute certificate from NDG Attribute Authority Web </tt> </tt>
1023<a name="L451"></a><tt class="py-lineno">451</tt>  <tt class="py-line"><tt class="py-docstring">        Service.</tt> </tt>
1024<a name="L452"></a><tt class="py-lineno">452</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
1025<a name="L453"></a><tt class="py-lineno">453</tt>  <tt class="py-line"><tt class="py-docstring">        @type userId: string</tt> </tt>
1026<a name="L454"></a><tt class="py-lineno">454</tt>  <tt class="py-line"><tt class="py-docstring">        @param userId: DN of the X.509 certificate used in SOAP digital </tt> </tt>
1027<a name="L455"></a><tt class="py-lineno">455</tt>  <tt class="py-line"><tt class="py-docstring">        signature corresponds to the *holder* of the Attribute Certificate</tt> </tt>
1028<a name="L456"></a><tt class="py-lineno">456</tt>  <tt class="py-line"><tt class="py-docstring">        that is issued.  Set this additional field to specify an alternate</tt> </tt>
1029<a name="L457"></a><tt class="py-lineno">457</tt>  <tt class="py-line"><tt class="py-docstring">        user ID to associate with the AC.  This is useful in the case where,</tt> </tt>
1030<a name="L458"></a><tt class="py-lineno">458</tt>  <tt class="py-line"><tt class="py-docstring">        as in the DEWS project, the holder will be a server cert. rather than</tt> </tt>
1031<a name="L459"></a><tt class="py-lineno">459</tt>  <tt class="py-line"><tt class="py-docstring">        a user proxy cert.</tt> </tt>
1032<a name="L460"></a><tt class="py-lineno">460</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
1033<a name="L461"></a><tt class="py-lineno">461</tt>  <tt class="py-line"><tt class="py-docstring">        If this keword is omitted, userId in the AC will default to the same</tt> </tt>
1034<a name="L462"></a><tt class="py-lineno">462</tt>  <tt class="py-line"><tt class="py-docstring">        value as the holder DN.</tt> </tt>
1035<a name="L463"></a><tt class="py-lineno">463</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
1036<a name="L464"></a><tt class="py-lineno">464</tt>  <tt class="py-line"><tt class="py-docstring">        @type userCert: string</tt> </tt>
1037<a name="L465"></a><tt class="py-lineno">465</tt>  <tt class="py-line"><tt class="py-docstring">        @param userCert: certificate corresponding to proxy private key and</tt> </tt>
1038<a name="L466"></a><tt class="py-lineno">466</tt>  <tt class="py-line"><tt class="py-docstring">        proxy cert used to sign the request.  Enables server to establish</tt> </tt>
1039<a name="L467"></a><tt class="py-lineno">467</tt>  <tt class="py-line"><tt class="py-docstring">        chain of trust proxy -&gt; user cert -&gt; CA cert.  If a standard </tt> </tt>
1040<a name="L468"></a><tt class="py-lineno">468</tt>  <tt class="py-line"><tt class="py-docstring">        private key is used to sign the request, this argument is not </tt> </tt>
1041<a name="L469"></a><tt class="py-lineno">469</tt>  <tt class="py-line"><tt class="py-docstring">        needed.</tt> </tt>
1042<a name="L470"></a><tt class="py-lineno">470</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
1043<a name="L471"></a><tt class="py-lineno">471</tt>  <tt class="py-line"><tt class="py-docstring">        @type userAttCert: string / AttCert</tt> </tt>
1044<a name="L472"></a><tt class="py-lineno">472</tt>  <tt class="py-line"><tt class="py-docstring">        @param userAttCert: user attribute certificate from which to make a </tt> </tt>
1045<a name="L473"></a><tt class="py-lineno">473</tt>  <tt class="py-line"><tt class="py-docstring">        mapped certificate at the target attribute authority.  userAttCert</tt> </tt>
1046<a name="L474"></a><tt class="py-lineno">474</tt>  <tt class="py-line"><tt class="py-docstring">        must have been issued from a trusted host to the target.  This is not </tt> </tt>
1047<a name="L475"></a><tt class="py-lineno">475</tt>  <tt class="py-line"><tt class="py-docstring">        necessary if the user is registered at the target Attribute Authority.</tt> </tt>
1048<a name="L476"></a><tt class="py-lineno">476</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
1049<a name="L477"></a><tt class="py-lineno">477</tt>  <tt class="py-line"><tt class="py-docstring">        @rtype ndg.security.common.AttCert.AttCert</tt> </tt>
1050<a name="L478"></a><tt class="py-lineno">478</tt>  <tt class="py-line"><tt class="py-docstring">        @return attribute certificate for user.  iIf access is refused, </tt> </tt>
1051<a name="L479"></a><tt class="py-lineno">479</tt>  <tt class="py-line"><tt class="py-docstring">        AttributeRequestDenied is raised"""</tt> </tt>
1052<a name="L480"></a><tt class="py-lineno">480</tt>  <tt class="py-line">     </tt>
1053<a name="L481"></a><tt class="py-lineno">481</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__srv</tt><tt class="py-op">:</tt> </tt>
1054<a name="L482"></a><tt class="py-lineno">482</tt>  <tt class="py-line">            <tt class="py-keyword">raise</tt> <tt class="py-name">InvalidSessionMgrClientCtx</tt><tt class="py-op">(</tt>\ </tt>
1055<a name="L483"></a><tt class="py-lineno">483</tt>  <tt class="py-line">                                        <tt class="py-string">"Client binding is not initialised"</tt><tt class="py-op">)</tt> </tt>
1056<a name="L484"></a><tt class="py-lineno">484</tt>  <tt class="py-line"> </tt>
1057<a name="L485"></a><tt class="py-lineno">485</tt>  <tt class="py-line">        <tt class="py-comment"># Ensure cert is serialized before passing over web service interface</tt> </tt>
1058<a name="L486"></a><tt class="py-lineno">486</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-keyword">if</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">userAttCert</tt><tt class="py-op">,</tt> <tt id="link-130" class="py-name"><a title="ndg.security.common.AttCert
1059ndg.security.common.AttCert.AttCert" class="py-name" href="#" onclick="return doclink('link-130', 'AttCert', 'link-13');">AttCert</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
1060<a name="L487"></a><tt class="py-lineno">487</tt>  <tt class="py-line">            <tt class="py-name">userAttCert</tt> <tt class="py-op">=</tt> <tt class="py-name">userAttCert</tt><tt class="py-op">.</tt><tt id="link-131" class="py-name" targets="Method ndg.security.common.AttCert.AttCert.toString()=ndg.security.common.AttCert.AttCert-class.html#toString,Method ndg.security.common.X509.X509Cert.toString()=ndg.security.common.X509.X509Cert-class.html#toString,Method ndg.security.common.XMLSec.XMLSecDoc.toString()=ndg.security.common.XMLSec.XMLSecDoc-class.html#toString,Method ndg.security.common.xmlsec.etree.XMLSecDoc.toString()=ndg.security.common.xmlsec.etree.XMLSecDoc-class.html#toString,Method ndg.security.common.zsi_utils.elementtreeproxy.ElementTreeProxy.toString()=ndg.security.common.zsi_utils.elementtreeproxy.ElementTreeProxy-class.html#toString"><a title="ndg.security.common.AttCert.AttCert.toString
1061ndg.security.common.X509.X509Cert.toString
1062ndg.security.common.XMLSec.XMLSecDoc.toString
1063ndg.security.common.xmlsec.etree.XMLSecDoc.toString
1064ndg.security.common.zsi_utils.elementtreeproxy.ElementTreeProxy.toString" class="py-name" href="#" onclick="return doclink('link-131', 'toString', 'link-131');">toString</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
1065<a name="L488"></a><tt class="py-lineno">488</tt>  <tt class="py-line"> </tt>
1066<a name="L489"></a><tt class="py-lineno">489</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
1067<a name="L490"></a><tt class="py-lineno">490</tt>  <tt class="py-line">            <tt class="py-name">sAttCert</tt><tt class="py-op">,</tt> <tt class="py-name">msg</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__srv</tt><tt class="py-op">.</tt><tt id="link-132" class="py-name" targets="Method ndg.security.common.AttAuthority.AttAuthorityClient.getAttCert()=ndg.security.common.AttAuthority.AttAuthorityClient-class.html#getAttCert,Method ndg.security.common.AttAuthority.AttAuthority_services.AttAuthorityBindingSOAP.getAttCert()=ndg.security.common.AttAuthority.AttAuthority_services.AttAuthorityBindingSOAP-class.html#getAttCert,Method ndg.security.common.CredWallet.CredWallet.getAttCert()=ndg.security.common.CredWallet.CredWallet-class.html#getAttCert,Method ndg.security.common.SessionMgr.SessionMgrClient.getAttCert()=ndg.security.common.SessionMgr.SessionMgrClient-class.html#getAttCert,Method ndg.security.common.SessionMgr.SessionMgr_services.SessionMgrBindingSOAP.getAttCert()=ndg.security.common.SessionMgr.SessionMgr_services.SessionMgrBindingSOAP-class.html#getAttCert,Method ndg.security.server.AttAuthority.AttAuthority.getAttCert()=ndg.security.server.AttAuthority.AttAuthority-class.html#getAttCert,Method ndg.security.server.SessionMgr.SessionMgr.getAttCert()=ndg.security.server.SessionMgr.SessionMgr-class.html#getAttCert"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.getAttCert
1068ndg.security.common.AttAuthority.AttAuthority_services.AttAuthorityBindingSOAP.getAttCert
1069ndg.security.common.CredWallet.CredWallet.getAttCert
1070ndg.security.common.SessionMgr.SessionMgrClient.getAttCert
1071ndg.security.common.SessionMgr.SessionMgr_services.SessionMgrBindingSOAP.getAttCert
1072ndg.security.server.AttAuthority.AttAuthority.getAttCert
1073ndg.security.server.SessionMgr.SessionMgr.getAttCert" class="py-name" href="#" onclick="return doclink('link-132', 'getAttCert', 'link-132');">getAttCert</a></tt><tt class="py-op">(</tt><tt id="link-133" class="py-name" targets="Variable ndg.security.common.AttCert.AttCert.userId=ndg.security.common.AttCert.AttCert-class.html#userId,Variable ndg.security.common.saml.AttributeAssertion.userId=ndg.security.common.saml.AttributeAssertion-class.html#userId"><a title="ndg.security.common.AttCert.AttCert.userId
1074ndg.security.common.saml.AttributeAssertion.userId" class="py-name" href="#" onclick="return doclink('link-133', 'userId', 'link-133');">userId</a></tt><tt class="py-op">,</tt><tt id="link-134" class="py-name" targets="Variable ndg.security.common.CredWallet.CredWallet.userCert=ndg.security.common.CredWallet.CredWallet-class.html#userCert"><a title="ndg.security.common.CredWallet.CredWallet.userCert" class="py-name" href="#" onclick="return doclink('link-134', 'userCert', 'link-134');">userCert</a></tt><tt class="py-op">,</tt><tt class="py-name">userAttCert</tt><tt class="py-op">)</tt>   </tt>
1075<a name="L491"></a><tt class="py-lineno">491</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt> <tt class="py-name">httplib</tt><tt class="py-op">.</tt><tt class="py-name">BadStatusLine</tt><tt class="py-op">,</tt> <tt class="py-name">e</tt><tt class="py-op">:</tt> </tt>
1076<a name="L492"></a><tt class="py-lineno">492</tt>  <tt class="py-line">            <tt class="py-keyword">raise</tt> <tt id="link-135" class="py-name"><a title="ndg.security.common.AttAuthority.AttAuthorityClientError" class="py-name" href="#" onclick="return doclink('link-135', 'AttAuthorityClientError', 'link-56');">AttAuthorityClientError</a></tt><tt class="py-op">,</tt> \ </tt>
1077<a name="L493"></a><tt class="py-lineno">493</tt>  <tt class="py-line">                <tt class="py-string">'Calling "%s" HTTP bad status line: %s'</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__uri</tt><tt class="py-op">,</tt> <tt class="py-name">e</tt><tt class="py-op">)</tt> </tt>
1078<a name="L494"></a><tt class="py-lineno">494</tt>  <tt class="py-line"> </tt>
1079<a name="L495"></a><tt class="py-lineno">495</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt> <tt class="py-name">Exception</tt><tt class="py-op">,</tt> <tt class="py-name">e</tt><tt class="py-op">:</tt> </tt>
1080<a name="L496"></a><tt class="py-lineno">496</tt>  <tt class="py-line">            <tt class="py-comment"># Try to detect exception type from SOAP fault message</tt> </tt>
1081<a name="L497"></a><tt class="py-lineno">497</tt>  <tt class="py-line"><tt class="py-comment"></tt>            <tt class="py-name">errMsg</tt> <tt class="py-op">=</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">e</tt><tt class="py-op">)</tt> </tt>
1082<a name="L498"></a><tt class="py-lineno">498</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">excep</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-136" class="py-name"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.excepMap
1083ndg.security.common.SessionMgr.SessionMgrClient.excepMap" class="py-name" href="#" onclick="return doclink('link-136', 'excepMap', 'link-29');">excepMap</a></tt><tt class="py-op">:</tt> </tt>
1084<a name="L499"></a><tt class="py-lineno">499</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">excep</tt> <tt class="py-keyword">in</tt> <tt class="py-name">errMsg</tt><tt class="py-op">:</tt> </tt>
1085<a name="L500"></a><tt class="py-lineno">500</tt>  <tt class="py-line">                    <tt class="py-keyword">raise</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-137" class="py-name"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.excepMap
1086ndg.security.common.SessionMgr.SessionMgrClient.excepMap" class="py-name" href="#" onclick="return doclink('link-137', 'excepMap', 'link-29');">excepMap</a></tt><tt class="py-op">[</tt><tt class="py-name">excep</tt><tt class="py-op">]</tt> </tt>
1087<a name="L501"></a><tt class="py-lineno">501</tt>  <tt class="py-line">                 </tt>
1088<a name="L502"></a><tt class="py-lineno">502</tt>  <tt class="py-line">            <tt class="py-comment"># Catch all    </tt> </tt>
1089<a name="L503"></a><tt class="py-lineno">503</tt>  <tt class="py-line"><tt class="py-comment"></tt>            <tt class="py-keyword">raise</tt> <tt class="py-name">e</tt> </tt>
1090<a name="L504"></a><tt class="py-lineno">504</tt>  <tt class="py-line">         </tt>
1091<a name="L505"></a><tt class="py-lineno">505</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">sAttCert</tt><tt class="py-op">:</tt> </tt>
1092<a name="L506"></a><tt class="py-lineno">506</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt id="link-138" class="py-name"><a title="ndg.security.common.AttCert.AttCertParse" class="py-name" href="#" onclick="return doclink('link-138', 'AttCertParse', 'link-15');">AttCertParse</a></tt><tt class="py-op">(</tt><tt class="py-name">sAttCert</tt><tt class="py-op">)</tt> </tt>
1093<a name="L507"></a><tt class="py-lineno">507</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
1094<a name="L508"></a><tt class="py-lineno">508</tt>  <tt class="py-line">            <tt class="py-keyword">raise</tt> <tt id="link-139" class="py-name" targets="Class ndg.security.common.AttAuthority.AttributeRequestDenied=ndg.security.common.AttAuthority.AttributeRequestDenied-class.html,Class ndg.security.common.SessionMgr.AttributeRequestDenied=ndg.security.common.SessionMgr.AttributeRequestDenied-class.html"><a title="ndg.security.common.AttAuthority.AttributeRequestDenied
1095ndg.security.common.SessionMgr.AttributeRequestDenied" class="py-name" href="#" onclick="return doclink('link-139', 'AttributeRequestDenied', 'link-139');">AttributeRequestDenied</a></tt><tt class="py-op">,</tt> <tt class="py-name">msg</tt> </tt>
1096</div><a name="L509"></a><tt class="py-lineno">509</tt>  <tt class="py-line"> </tt>
1097<a name="L510"></a><tt class="py-lineno">510</tt>  <tt class="py-line">                                     </tt>
1098<a name="L511"></a><tt class="py-lineno">511</tt>  <tt class="py-line">    <tt class="py-comment">#_________________________________________________________________________</tt> </tt>
1099<a name="AttAuthorityClient.getX509Cert"></a><div id="AttAuthorityClient.getX509Cert-def"><a name="L512"></a><tt class="py-lineno">512</tt> <a class="py-toggle" href="#" id="AttAuthorityClient.getX509Cert-toggle" onclick="return toggle('AttAuthorityClient.getX509Cert');">-</a><tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">def</tt> <a class="py-def-name" href="ndg.security.common.AttAuthority.AttAuthorityClient-class.html#getX509Cert">getX509Cert</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
1100</div><div id="AttAuthorityClient.getX509Cert-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="AttAuthorityClient.getX509Cert-expanded"><a name="L513"></a><tt class="py-lineno">513</tt>  <tt class="py-line">        <tt class="py-docstring">"""Retrieve the X.509 certificate of the Attribute Authority</tt> </tt>
1101<a name="L514"></a><tt class="py-lineno">514</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
1102<a name="L515"></a><tt class="py-lineno">515</tt>  <tt class="py-line"><tt class="py-docstring">        @rtype: string</tt> </tt>
1103<a name="L516"></a><tt class="py-lineno">516</tt>  <tt class="py-line"><tt class="py-docstring">        @return X.509 certificate for Attribute Authority"""</tt> </tt>
1104<a name="L517"></a><tt class="py-lineno">517</tt>  <tt class="py-line">     </tt>
1105<a name="L518"></a><tt class="py-lineno">518</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__srv</tt><tt class="py-op">:</tt> </tt>
1106<a name="L519"></a><tt class="py-lineno">519</tt>  <tt class="py-line">            <tt class="py-keyword">raise</tt> <tt class="py-name">InvalidSessionMgrClientCtx</tt><tt class="py-op">(</tt>\ </tt>
1107<a name="L520"></a><tt class="py-lineno">520</tt>  <tt class="py-line">                                        <tt class="py-string">"Client binding is not initialised"</tt><tt class="py-op">)</tt> </tt>
1108<a name="L521"></a><tt class="py-lineno">521</tt>  <tt class="py-line">         </tt>
1109<a name="L522"></a><tt class="py-lineno">522</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
1110<a name="L523"></a><tt class="py-lineno">523</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__srv</tt><tt class="py-op">.</tt><tt id="link-140" class="py-name" targets="Method ndg.security.common.AttAuthority.AttAuthorityClient.getX509Cert()=ndg.security.common.AttAuthority.AttAuthorityClient-class.html#getX509Cert,Method ndg.security.common.AttAuthority.AttAuthority_services.AttAuthorityBindingSOAP.getX509Cert()=ndg.security.common.AttAuthority.AttAuthority_services.AttAuthorityBindingSOAP-class.html#getX509Cert,Method ndg.security.common.SessionMgr.SessionMgrClient.getX509Cert()=ndg.security.common.SessionMgr.SessionMgrClient-class.html#getX509Cert,Method ndg.security.common.SessionMgr.SessionMgr_services.SessionMgrBindingSOAP.getX509Cert()=ndg.security.common.SessionMgr.SessionMgr_services.SessionMgrBindingSOAP-class.html#getX509Cert"><a title="ndg.security.common.AttAuthority.AttAuthorityClient.getX509Cert
1111ndg.security.common.AttAuthority.AttAuthority_services.AttAuthorityBindingSOAP.getX509Cert
1112ndg.security.common.SessionMgr.SessionMgrClient.getX509Cert
1113ndg.security.common.SessionMgr.SessionMgr_services.SessionMgrBindingSOAP.getX509Cert" class="py-name" href="#" onclick="return doclink('link-140', 'getX509Cert', 'link-140');">getX509Cert</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt>                 </tt>
1114<a name="L524"></a><tt class="py-lineno">524</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt> <tt class="py-name">httplib</tt><tt class="py-op">.</tt><tt class="py-name">BadStatusLine</tt><tt class="py-op">,</tt> <tt class="py-name">e</tt><tt class="py-op">:</tt> </tt>
1115<a name="L525"></a><tt class="py-lineno">525</tt>  <tt class="py-line">            <tt class="py-keyword">raise</tt> <tt id="link-141" class="py-name"><a title="ndg.security.common.AttAuthority.AttAuthorityClientError" class="py-name" href="#" onclick="return doclink('link-141', 'AttAuthorityClientError', 'link-56');">AttAuthorityClientError</a></tt><tt class="py-op">,</tt> <tt class="py-string">"HTTP bad status line: %s"</tt> <tt class="py-op">%</tt> <tt class="py-name">e</tt> </tt>
1116</div></div><a name="L526"></a><tt class="py-lineno">526</tt>  <tt class="py-line"> </tt><script type="text/javascript">
1117<!--
1118expandto(location.href);
1119// -->
1120</script>
1121</pre>
1122<br />
1123<!-- ==================== NAVIGATION BAR ==================== -->
1124<table class="navbar" border="0" width="100%" cellpadding="0"
1125       bgcolor="#a0c0ff" cellspacing="0">
1126  <tr valign="middle">
1127  <!-- Home link -->
1128      <th>&nbsp;&nbsp;&nbsp;<a
1129        href="ndg-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>
1130
1131  <!-- Tree link -->
1132      <th>&nbsp;&nbsp;&nbsp;<a
1133        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
1134
1135  <!-- Index link -->
1136      <th>&nbsp;&nbsp;&nbsp;<a
1137        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
1138
1139  <!-- Help link -->
1140      <th>&nbsp;&nbsp;&nbsp;<a
1141        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
1142
1143  <!-- Project homepage -->
1144      <th class="navbar" align="right" width="100%">
1145        <table border="0" cellpadding="0" cellspacing="0">
1146          <tr><th class="navbar" align="center"
1147            >NDG Security</th>
1148          </tr></table></th>
1149  </tr>
1150</table>
1151<table border="0" cellpadding="0" cellspacing="0" width="100%%">
1152  <tr>
1153    <td align="left" class="footer">
1154    <a href="epydoc-log.html">Generated by Epydoc
1155    3.0.1 on Thu Sep  4 09:38:00 2008</a>
1156    </td>
1157    <td align="right" class="footer">
1158      <a target="mainFrame" href="http://epydoc.sourceforge.net"
1159        >http://epydoc.sourceforge.net</a>
1160    </td>
1161  </tr>
1162</table>
1163
1164<script type="text/javascript">
1165  <!--
1166  // Private objects are initially displayed (because if
1167  // javascript is turned off then we want them to be
1168  // visible); but by default, we want to hide them.  So hide
1169  // them unless we have a cookie that says to show them.
1170  checkCookie();
1171  // -->
1172</script>
1173</body>
1174</html>
Note: See TracBrowser for help on using the repository browser.