source: TI12-security/trunk/python/ndg.security.common/ndg/security/common/SessionMgr/SessionMgr_services_types.py @ 2085

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/python/ndg.security.common/ndg/security/common/SessionMgr/SessionMgr_services_types.py@2085
Revision 2085, 13.1 KB checked in by pjkersha, 13 years ago (diff)

python/ndg.security.server/ndg/security/server/AttAuthority/server-config.tac:

python/www/html/attAuthority.wsdl,
python/ndg.security.server/ndg/security/server/AttAuthority/AttAuthority_services_server.py,
python/ndg.security.common/ndg/security/common/AttAuthority/AttAuthority_services_types.py,
python/ndg.security.common/ndg/security/common/AttAuthority/AttAuthority_services.py:
Include request denied message in getAttCertResponse.

python/ndg.security.server/ndg/security/server/AttAuthority/init.py:
fix to AttAuthorityAccessDenied? doc message.

python/ndg.security.server/ndg/security/server/SessionMgr/server-config.tac:
Exlpicitly convert AttCert? in response to string type.

python/ndg.security.server/ndg/security/server/SessionMgr/init.py:

  • make explicit imports from ndg.security.common.CredWallet?
  • make X509CertParse import
  • updated exception handling for getAttCert call to CredWallet?.

python/www/html/sessionMgr.wsdl,
python/ndg.security.server/ndg/security/server/SessionMgr/SessionMgr_services_server.py,
python/ndg.security.common/ndg/security/common/SessionMgr/SessionMgr_services.py,
python/ndg.security.common/ndg/security/common/SessionMgr/SessionMgr_services_types.py:
Remove statusCode from getAttCertResponse - not needed.

python/ndg.security.test/ndg/security/test/AttAuthority/AttAuthorityClientTest.py:
minor updates to getAttCert tests.

python/ndg.security.test/ndg/security/test/MyProxy/myProxyClientTest.cfg:
fix to test1Store settings

python/ndg.security.test/ndg/security/test/MyProxy/Makefile:
makefile copies proxy obtained from MyProxy? ready for use in AttAuthority? client tests.

python/ndg.security.test/ndg/security/test/SessionMgr/SessionMgrClientTest.py:

  • add AttributeRequestDenied? import from SessionMgr?.
  • fix test4CookieDisconnect signing PKI settings
  • revised output tuple for getAttCert calls.
  • Added test6aCookieGetAttCertRefused to demonstrate attribute request denied exception
  • test3ProxyCertConnect signature verification failing at server!

python/ndg.security.test/ndg/security/test/SessionMgr/sessionMgrClientTest.cfg:
added more getAttCert test params.

python/ndg.security.common/ndg/security/common/AttAuthority/init.py:

python/ndg.security.common/ndg/security/common/wsSecurity.py:
comment out all print statements - only 'print decryptedData' affected in decrypt method
of EncryptionHandler?. This is not in use.

python/ndg.security.common/ndg/security/common/SessionMgr/init.py:

  • Added AttributeRequestDenied? exception for handling getAttCert calls.
  • msg now included in output tuple for getAttCert call.

python/ndg.security.common/ndg/security/common/AttCert.py:
Override XMLSecDoc parent class toString and str calls so that output is returned even
if the signature DOM object has not been initialised.

python/ndg.security.common/ndg/security/common/CredWallet.py:

Line 
1##################################################
2# SessionMgr_services_types.py
3# generated by ZSI.generate.wsdl2python
4##################################################
5
6
7import ZSI
8import ZSI.TCcompound
9from ZSI.schema import LocalElementDeclaration, ElementDeclaration, TypeDefinition, GTD, GED
10from ZSI.generate.pyclass import pyclass_type
11
12##############################
13# targetNamespace
14# urn:ndg:security:sessionMgr
15##############################
16
17class ns0:
18    targetNamespace = "urn:ndg:security:sessionMgr"
19
20    class addUser_Dec(ZSI.TCcompound.ComplexType, ElementDeclaration):
21        literal = "addUser"
22        schema = "urn:ndg:security:sessionMgr"
23        def __init__(self, **kw):
24            ns = ns0.addUser_Dec.schema
25            TClist = [ZSI.TC.String(pname="username", aname="_username", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="passphrase", aname="_passphrase", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
26            kw["pname"] = ("urn:ndg:security:sessionMgr","addUser")
27            kw["aname"] = "_addUser"
28            self.attribute_typecode_dict = {}
29            ZSI.TCcompound.ComplexType.__init__(self,None,TClist,inorder=0,**kw)
30            class Holder:
31                __metaclass__ = pyclass_type
32                typecode = self
33                def __init__(self):
34                    # pyclass
35                    self._username = None
36                    self._passphrase = None
37                    return
38            Holder.__name__ = "addUser_Holder"
39            self.pyclass = Holder
40
41    class addUserResponse_Dec(ZSI.TCcompound.ComplexType, ElementDeclaration):
42        literal = "addUserResponse"
43        schema = "urn:ndg:security:sessionMgr"
44        def __init__(self, **kw):
45            ns = ns0.addUserResponse_Dec.schema
46            TClist = []
47            kw["pname"] = ("urn:ndg:security:sessionMgr","addUserResponse")
48            kw["aname"] = "_addUserResponse"
49            self.attribute_typecode_dict = {}
50            ZSI.TCcompound.ComplexType.__init__(self,None,TClist,inorder=0,**kw)
51            class Holder:
52                __metaclass__ = pyclass_type
53                typecode = self
54                def __init__(self):
55                    # pyclass
56                    return
57            Holder.__name__ = "addUserResponse_Holder"
58            self.pyclass = Holder
59
60    class connect_Dec(ZSI.TCcompound.ComplexType, ElementDeclaration):
61        literal = "connect"
62        schema = "urn:ndg:security:sessionMgr"
63        def __init__(self, **kw):
64            ns = ns0.connect_Dec.schema
65            TClist = [ZSI.TC.String(pname="username", aname="_username", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="passphrase", aname="_passphrase", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.Boolean(pname="createServerSess", aname="_createServerSess", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.Boolean(pname="getCookie", aname="_getCookie", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
66            kw["pname"] = ("urn:ndg:security:sessionMgr","connect")
67            kw["aname"] = "_connect"
68            self.attribute_typecode_dict = {}
69            ZSI.TCcompound.ComplexType.__init__(self,None,TClist,inorder=0,**kw)
70            class Holder:
71                __metaclass__ = pyclass_type
72                typecode = self
73                def __init__(self):
74                    # pyclass
75                    self._username = None
76                    self._passphrase = None
77                    self._createServerSess = None
78                    self._getCookie = None
79                    return
80            Holder.__name__ = "connect_Holder"
81            self.pyclass = Holder
82
83    class connectResponse_Dec(ZSI.TCcompound.ComplexType, ElementDeclaration):
84        literal = "connectResponse"
85        schema = "urn:ndg:security:sessionMgr"
86        def __init__(self, **kw):
87            ns = ns0.connectResponse_Dec.schema
88            TClist = [ZSI.TC.String(pname="proxyCert", aname="_proxyCert", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="proxyPriKey", aname="_proxyPriKey", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="userCert", aname="_userCert", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="cookie", aname="_cookie", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
89            kw["pname"] = ("urn:ndg:security:sessionMgr","connectResponse")
90            kw["aname"] = "_connectResponse"
91            self.attribute_typecode_dict = {}
92            ZSI.TCcompound.ComplexType.__init__(self,None,TClist,inorder=0,**kw)
93            class Holder:
94                __metaclass__ = pyclass_type
95                typecode = self
96                def __init__(self):
97                    # pyclass
98                    self._proxyCert = None
99                    self._proxyPriKey = None
100                    self._userCert = None
101                    self._cookie = None
102                    return
103            Holder.__name__ = "connectResponse_Holder"
104            self.pyclass = Holder
105
106    class disconnect_Dec(ZSI.TCcompound.ComplexType, ElementDeclaration):
107        literal = "disconnect"
108        schema = "urn:ndg:security:sessionMgr"
109        def __init__(self, **kw):
110            ns = ns0.disconnect_Dec.schema
111            TClist = [ZSI.TC.String(pname="userCert", aname="_userCert", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="sessID", aname="_sessID", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="encrSessionMgrURI", aname="_encrSessionMgrURI", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
112            kw["pname"] = ("urn:ndg:security:sessionMgr","disconnect")
113            kw["aname"] = "_disconnect"
114            self.attribute_typecode_dict = {}
115            ZSI.TCcompound.ComplexType.__init__(self,None,TClist,inorder=0,**kw)
116            class Holder:
117                __metaclass__ = pyclass_type
118                typecode = self
119                def __init__(self):
120                    # pyclass
121                    self._userCert = None
122                    self._sessID = None
123                    self._encrSessionMgrURI = None
124                    return
125            Holder.__name__ = "disconnect_Holder"
126            self.pyclass = Holder
127
128    class disconnectResponse_Dec(ZSI.TCcompound.ComplexType, ElementDeclaration):
129        literal = "disconnectResponse"
130        schema = "urn:ndg:security:sessionMgr"
131        def __init__(self, **kw):
132            ns = ns0.disconnectResponse_Dec.schema
133            TClist = []
134            kw["pname"] = ("urn:ndg:security:sessionMgr","disconnectResponse")
135            kw["aname"] = "_disconnectResponse"
136            self.attribute_typecode_dict = {}
137            ZSI.TCcompound.ComplexType.__init__(self,None,TClist,inorder=0,**kw)
138            class Holder:
139                __metaclass__ = pyclass_type
140                typecode = self
141                def __init__(self):
142                    # pyclass
143                    return
144            Holder.__name__ = "disconnectResponse_Holder"
145            self.pyclass = Holder
146
147    class getAttCert_Dec(ZSI.TCcompound.ComplexType, ElementDeclaration):
148        literal = "getAttCert"
149        schema = "urn:ndg:security:sessionMgr"
150        def __init__(self, **kw):
151            ns = ns0.getAttCert_Dec.schema
152            TClist = [ZSI.TC.String(pname="userCert", aname="_userCert", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="sessID", aname="_sessID", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="encrSessionMgrURI", aname="_encrSessionMgrURI", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="attAuthorityURI", aname="_attAuthorityURI", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="attAuthorityCert", aname="_attAuthorityCert", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="reqRole", aname="_reqRole", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.Boolean(pname="mapFromTrustedHosts", aname="_mapFromTrustedHosts", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.Boolean(pname="rtnExtAttCertList", aname="_rtnExtAttCertList", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="extAttCert", aname="_extAttCert", minOccurs=0, maxOccurs="unbounded", nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="extTrustedHost", aname="_extTrustedHost", minOccurs=0, maxOccurs="unbounded", nillable=False, typed=False, encoded=kw.get("encoded"))]
153            kw["pname"] = ("urn:ndg:security:sessionMgr","getAttCert")
154            kw["aname"] = "_getAttCert"
155            self.attribute_typecode_dict = {}
156            ZSI.TCcompound.ComplexType.__init__(self,None,TClist,inorder=0,**kw)
157            class Holder:
158                __metaclass__ = pyclass_type
159                typecode = self
160                def __init__(self):
161                    # pyclass
162                    self._userCert = None
163                    self._sessID = None
164                    self._encrSessionMgrURI = None
165                    self._attAuthorityURI = None
166                    self._attAuthorityCert = None
167                    self._reqRole = None
168                    self._mapFromTrustedHosts = None
169                    self._rtnExtAttCertList = None
170                    self._extAttCert = []
171                    self._extTrustedHost = []
172                    return
173            Holder.__name__ = "getAttCert_Holder"
174            self.pyclass = Holder
175
176    class getAttCertResponse_Dec(ZSI.TCcompound.ComplexType, ElementDeclaration):
177        literal = "getAttCertResponse"
178        schema = "urn:ndg:security:sessionMgr"
179        def __init__(self, **kw):
180            ns = ns0.getAttCertResponse_Dec.schema
181            TClist = [ZSI.TC.String(pname="attCert", aname="_attCert", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="msg", aname="_msg", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="extAttCert", aname="_extAttCert", minOccurs=0, maxOccurs="unbounded", nillable=False, typed=False, encoded=kw.get("encoded"))]
182            kw["pname"] = ("urn:ndg:security:sessionMgr","getAttCertResponse")
183            kw["aname"] = "_getAttCertResponse"
184            self.attribute_typecode_dict = {}
185            ZSI.TCcompound.ComplexType.__init__(self,None,TClist,inorder=0,**kw)
186            class Holder:
187                __metaclass__ = pyclass_type
188                typecode = self
189                def __init__(self):
190                    # pyclass
191                    self._attCert = None
192                    self._msg = None
193                    self._extAttCert = []
194                    return
195            Holder.__name__ = "getAttCertResponse_Holder"
196            self.pyclass = Holder
197
198    class getX509Cert_Dec(ZSI.TCcompound.ComplexType, ElementDeclaration):
199        literal = "getX509Cert"
200        schema = "urn:ndg:security:sessionMgr"
201        def __init__(self, **kw):
202            ns = ns0.getX509Cert_Dec.schema
203            TClist = []
204            kw["pname"] = ("urn:ndg:security:sessionMgr","getX509Cert")
205            kw["aname"] = "_getX509Cert"
206            self.attribute_typecode_dict = {}
207            ZSI.TCcompound.ComplexType.__init__(self,None,TClist,inorder=0,**kw)
208            class Holder:
209                __metaclass__ = pyclass_type
210                typecode = self
211                def __init__(self):
212                    # pyclass
213                    return
214            Holder.__name__ = "getX509Cert_Holder"
215            self.pyclass = Holder
216
217    class getX509CertResponse_Dec(ZSI.TCcompound.ComplexType, ElementDeclaration):
218        literal = "getX509CertResponse"
219        schema = "urn:ndg:security:sessionMgr"
220        def __init__(self, **kw):
221            ns = ns0.getX509CertResponse_Dec.schema
222            TClist = [ZSI.TC.String(pname="x509Cert", aname="_x509Cert", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
223            kw["pname"] = ("urn:ndg:security:sessionMgr","getX509CertResponse")
224            kw["aname"] = "_getX509CertResponse"
225            self.attribute_typecode_dict = {}
226            ZSI.TCcompound.ComplexType.__init__(self,None,TClist,inorder=0,**kw)
227            class Holder:
228                __metaclass__ = pyclass_type
229                typecode = self
230                def __init__(self):
231                    # pyclass
232                    self._x509Cert = None
233                    return
234            Holder.__name__ = "getX509CertResponse_Holder"
235            self.pyclass = Holder
236
237# end class ns0 (tns: urn:ndg:security:sessionMgr)
Note: See TracBrowser for help on using the repository browser.