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

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@3145
Revision 3145, 12.8 KB checked in by pjkersha, 12 years ago (diff)

python/www/html/sessionMgr.wsdl,
python/ndg.security.common/ndg/security/common/SessionMgr/SessionMgr_services.py,
python/ndg.security.common/ndg/security/common/SessionMgr/SessionMgr_services_types.py,
python/ndg.security.server/ndg/security/server/SessionMgr/SessionMgr_services_server.py:

  • remove refs to proxy certs - using MyProxy? as CA proxy certs aren't generated.
  • make issuingCert nillable as it won't be set if calling MyProxy? in Simple CA mode

python/ndg.security.server/ndg/security/server/conf/sessionMgr.tac: removes refs to proxy cert - replace with user cert

python/ndg.security.server/ndg/security/server/conf/sessionMgrProperties.xml: fix MyProxy? cert times - these are in seconds NOT hours

python/ndg.security.server/ndg/security/server/MyProxy.py: remove '\0's from get and info commands

python/ndg.security.test/ndg/security/test/sessionMgrClient/SessionMgrClientTest.py: fixed for tests with new MyProxy? config as SimpleCA

python/ndg.security.test/ndg/security/test/sessionMgrClient/server.sh: get rid of --pidfile arg to twistd - not needed.

python/ndg.security.test/ndg/security/test/sessionMgrClient/sm-clnt.crt,
python/ndg.security.test/ndg/security/test/sessionMgrClient/sm-clnt.key,

python/ndg.security.test/ndg/security/test/sessionMgr/sessionMgrProperties.xml,
python/ndg.security.test/ndg/security/test/sessionMgr/sessionMgrTest.cfg,
python/ndg.security.test/ndg/security/test/sessionMgrClient/sessionMgrProperties.xml,
python/ndg.security.test/ndg/security/test/sessionMgrClient/sessionMgrClientTest.cfg: altered for tests with multiple CAs

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

  • removed addUser method - not needed
  • switched refs to proxy cert -> user cert
  • Property svn:keywords set to Id
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 getSessionStatus_Dec(ZSI.TCcompound.ComplexType, ElementDeclaration):
21        literal = "getSessionStatus"
22        schema = "urn:ndg:security:sessionMgr"
23        def __init__(self, **kw):
24            ns = ns0.getSessionStatus_Dec.schema
25            TClist = [ZSI.TC.String(pname="userDN", aname="_userDN", 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"))]
26            kw["pname"] = ("urn:ndg:security:sessionMgr","getSessionStatus")
27            kw["aname"] = "_getSessionStatus"
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._userDN = None
36                    self._sessID = None
37                    return
38            Holder.__name__ = "getSessionStatus_Holder"
39            self.pyclass = Holder
40
41    class getSessionStatusResponse_Dec(ZSI.TCcompound.ComplexType, ElementDeclaration):
42        literal = "getSessionStatusResponse"
43        schema = "urn:ndg:security:sessionMgr"
44        def __init__(self, **kw):
45            ns = ns0.getSessionStatusResponse_Dec.schema
46            TClist = [ZSI.TC.Boolean(pname="isAlive", aname="_isAlive", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
47            kw["pname"] = ("urn:ndg:security:sessionMgr","getSessionStatusResponse")
48            kw["aname"] = "_getSessionStatusResponse"
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                    self._isAlive = None
57                    return
58            Holder.__name__ = "getSessionStatusResponse_Holder"
59            self.pyclass = Holder
60
61    class connect_Dec(ZSI.TCcompound.ComplexType, ElementDeclaration):
62        literal = "connect"
63        schema = "urn:ndg:security:sessionMgr"
64        def __init__(self, **kw):
65            ns = ns0.connect_Dec.schema
66            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"))]
67            kw["pname"] = ("urn:ndg:security:sessionMgr","connect")
68            kw["aname"] = "_connect"
69            self.attribute_typecode_dict = {}
70            ZSI.TCcompound.ComplexType.__init__(self,None,TClist,inorder=0,**kw)
71            class Holder:
72                __metaclass__ = pyclass_type
73                typecode = self
74                def __init__(self):
75                    # pyclass
76                    self._username = None
77                    self._passphrase = None
78                    self._createServerSess = 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="userCert", aname="_userCert", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="userPriKey", aname="_userPriKey", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="issuingCert", aname="_issuingCert", 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"))]
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._userCert = None
99                    self._userPriKey = None
100                    self._issuingCert = None
101                    self._sessID = 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"))]
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                    return
124            Holder.__name__ = "disconnect_Holder"
125            self.pyclass = Holder
126
127    class disconnectResponse_Dec(ZSI.TCcompound.ComplexType, ElementDeclaration):
128        literal = "disconnectResponse"
129        schema = "urn:ndg:security:sessionMgr"
130        def __init__(self, **kw):
131            ns = ns0.disconnectResponse_Dec.schema
132            TClist = []
133            kw["pname"] = ("urn:ndg:security:sessionMgr","disconnectResponse")
134            kw["aname"] = "_disconnectResponse"
135            self.attribute_typecode_dict = {}
136            ZSI.TCcompound.ComplexType.__init__(self,None,TClist,inorder=0,**kw)
137            class Holder:
138                __metaclass__ = pyclass_type
139                typecode = self
140                def __init__(self):
141                    # pyclass
142                    return
143            Holder.__name__ = "disconnectResponse_Holder"
144            self.pyclass = Holder
145
146    class getAttCert_Dec(ZSI.TCcompound.ComplexType, ElementDeclaration):
147        literal = "getAttCert"
148        schema = "urn:ndg:security:sessionMgr"
149        def __init__(self, **kw):
150            ns = ns0.getAttCert_Dec.schema
151            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="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"))]
152            kw["pname"] = ("urn:ndg:security:sessionMgr","getAttCert")
153            kw["aname"] = "_getAttCert"
154            self.attribute_typecode_dict = {}
155            ZSI.TCcompound.ComplexType.__init__(self,None,TClist,inorder=0,**kw)
156            class Holder:
157                __metaclass__ = pyclass_type
158                typecode = self
159                def __init__(self):
160                    # pyclass
161                    self._userCert = None
162                    self._sessID = None
163                    self._attAuthorityURI = None
164                    self._attAuthorityCert = None
165                    self._reqRole = None
166                    self._mapFromTrustedHosts = None
167                    self._rtnExtAttCertList = None
168                    self._extAttCert = []
169                    self._extTrustedHost = []
170                    return
171            Holder.__name__ = "getAttCert_Holder"
172            self.pyclass = Holder
173
174    class getAttCertResponse_Dec(ZSI.TCcompound.ComplexType, ElementDeclaration):
175        literal = "getAttCertResponse"
176        schema = "urn:ndg:security:sessionMgr"
177        def __init__(self, **kw):
178            ns = ns0.getAttCertResponse_Dec.schema
179            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="extAttCertOut", aname="_extAttCertOut", minOccurs=0, maxOccurs="unbounded", nillable=False, typed=False, encoded=kw.get("encoded"))]
180            kw["pname"] = ("urn:ndg:security:sessionMgr","getAttCertResponse")
181            kw["aname"] = "_getAttCertResponse"
182            self.attribute_typecode_dict = {}
183            ZSI.TCcompound.ComplexType.__init__(self,None,TClist,inorder=0,**kw)
184            class Holder:
185                __metaclass__ = pyclass_type
186                typecode = self
187                def __init__(self):
188                    # pyclass
189                    self._attCert = None
190                    self._msg = None
191                    self._extAttCertOut = []
192                    return
193            Holder.__name__ = "getAttCertResponse_Holder"
194            self.pyclass = Holder
195
196    class getX509Cert_Dec(ZSI.TCcompound.ComplexType, ElementDeclaration):
197        literal = "getX509Cert"
198        schema = "urn:ndg:security:sessionMgr"
199        def __init__(self, **kw):
200            ns = ns0.getX509Cert_Dec.schema
201            TClist = []
202            kw["pname"] = ("urn:ndg:security:sessionMgr","getX509Cert")
203            kw["aname"] = "_getX509Cert"
204            self.attribute_typecode_dict = {}
205            ZSI.TCcompound.ComplexType.__init__(self,None,TClist,inorder=0,**kw)
206            class Holder:
207                __metaclass__ = pyclass_type
208                typecode = self
209                def __init__(self):
210                    # pyclass
211                    return
212            Holder.__name__ = "getX509Cert_Holder"
213            self.pyclass = Holder
214
215    class getX509CertResponse_Dec(ZSI.TCcompound.ComplexType, ElementDeclaration):
216        literal = "getX509CertResponse"
217        schema = "urn:ndg:security:sessionMgr"
218        def __init__(self, **kw):
219            ns = ns0.getX509CertResponse_Dec.schema
220            TClist = [ZSI.TC.String(pname="x509Cert", aname="_x509Cert", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
221            kw["pname"] = ("urn:ndg:security:sessionMgr","getX509CertResponse")
222            kw["aname"] = "_getX509CertResponse"
223            self.attribute_typecode_dict = {}
224            ZSI.TCcompound.ComplexType.__init__(self,None,TClist,inorder=0,**kw)
225            class Holder:
226                __metaclass__ = pyclass_type
227                typecode = self
228                def __init__(self):
229                    # pyclass
230                    self._x509Cert = None
231                    return
232            Holder.__name__ = "getX509CertResponse_Holder"
233            self.pyclass = Holder
234
235# end class ns0 (tns: urn:ndg:security:sessionMgr)
Note: See TracBrowser for help on using the repository browser.