Changeset 6914 for TI12-security/trunk/ndg_saml
- Timestamp:
- 01/06/10 12:37:13 (11 years ago)
- Location:
- TI12-security/trunk/ndg_saml
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
TI12-security/trunk/ndg_saml/.pydevproject
r6625 r6914 3 3 4 4 <pydev_project> 5 <pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 2. 5</pydev_property>6 <pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER"> Default</pydev_property>5 <pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 2.6</pydev_property> 6 <pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Python2.6</pydev_property> 7 7 <pydev_pathproperty name="org.python.pydev.PROJECT_SOURCE_PATH"> 8 8 <path>/ndg_saml</path> -
TI12-security/trunk/ndg_saml/documentation
-
Property
svn:ignore
set to
*.*
-
Property
svn:ignore
set to
-
TI12-security/trunk/ndg_saml/documentation/Makefile
r6900 r6914 15 15 # Generate HTML from embedded epydoc text in source code. 16 16 EPYDOC=epydoc 17 EPYDOC_INDIR=../ndg 17 18 EPYDOC_OUTDIR=. 18 EPYDOC_NAME=' MyProxy Client'19 EPYDOC_NAME='NERC DataGrid SAML 2.0' 19 20 EPYDOC_LOGFILE=epydoc.log 20 EPYDOC_FRAMES_OPT=--no-frames 21 EPYDOC_OPTS=--no-frames --include-log --graph=all -v 22 ZIP=zip 23 ZIP_OUTFILE=./documentation.zip 24 ZIP_INFILES=./*.* 25 21 26 epydoc: 22 ${EPYDOC} ../myproxy-o ${EPYDOC_OUTDIR} --name ${EPYDOC_NAME} \23 ${EPYDOC_ FRAMES_OPT} --include-log --graph=all -v> ${EPYDOC_LOGFILE}27 ${EPYDOC} ${EPYDOC_INDIR} -o ${EPYDOC_OUTDIR} --name ${EPYDOC_NAME} \ 28 ${EPYDOC_OPTS} > ${EPYDOC_LOGFILE} 24 29 30 zip: 31 ${ZIP} ${ZIP_OUTFILE} ${ZIP_INFILES} 32 25 33 clean: 26 34 rm -f *.txt *.html *.gif -
TI12-security/trunk/ndg_saml/ndg/saml/common/__init__.py
r6901 r6914 69 69 def qname(self): 70 70 """Qualified Name for this type 71 71 72 @return: qualified name 72 73 @rtype: ndg.saml.common.xml.QName -
TI12-security/trunk/ndg_saml/ndg/saml/common/xml.py
r6906 r6914 397 397 """Set prefix 398 398 @param value: prefix 399 @type : string399 @type value: string 400 400 @raise TypeError: invalid input value type 401 401 """ … … 416 416 def _setLocalPart(self, value): 417 417 """Set local part 418 @param : local part419 @type : string418 @param value: local part 419 @type value: string 420 420 @raise TypeError: invalid input value type 421 421 """ … … 436 436 def _setNamespaceURI(self, value): 437 437 """Set namespace URI 438 @param : namespace URI439 @type : string438 @param value: namespace URI 439 @type value: string 440 440 @raise TypeError: invalid input value type 441 441 """ -
TI12-security/trunk/ndg_saml/ndg/saml/saml2/core.py
r6913 r6914 115 115 def __init__(self, **kw): 116 116 """Initialise Attribute Class attributes 117 @param **kw: keywords SAMLObject parent instantiation118 @type **kw: dict117 @param kw: keywords SAMLObject parent instantiation 118 @type kw: dict 119 119 """ 120 120 super(Attribute, self).__init__(**kw) … … 151 151 def _set_name(self, name): 152 152 """Set name 153 @param : name154 @type : name153 @param name: name 154 @type name: basestring 155 155 @raise TypeError: invalid input value type 156 156 """ … … 174 174 def _set_nameFormat(self, nameFormat): 175 175 """Set name format 176 @param : name format177 @type : string176 @param nameFormat: name format 177 @type nameFormat: string 178 178 @raise TypeError: invalid input value type 179 179 """ … … 197 197 def _set_friendlyName(self, friendlyName): 198 198 """Set friendly name 199 @param : friendly name200 @type : string199 @param friendlyName: friendly name 200 @type friendlyName: string 201 201 @raise TypeError: invalid input value type 202 202 """ … … 220 220 def _set_attributeValues(self, attributeValues): 221 221 """Set attribute values 222 @param : attribute values223 @type : string222 @param attributeValues: attribute values 223 @type attributeValues: list/tuple 224 224 @raise TypeError: invalid input value type 225 225 """ … … 307 307 def __init__(self, **kw): 308 308 """ 309 @param **kw: keywords Statement parent class instantiation310 @type **kw: dict309 @param kw: keywords Statement parent class instantiation 310 @type kw: dict 311 311 """ 312 312 super(AttributeStatement, self).__init__(**kw) … … 410 410 411 411 @param value: the time when the authentication took place 412 @type : datetime.datetime412 @type value: datetime.datetime 413 413 @raise NotImplementedError: abstract method 414 414 ''' … … 432 432 @param value: the session index between the principal and the 433 433 authenticating authority 434 @type : ?434 @type value: ? 435 435 @raise NotImplementedError: abstract method 436 436 ''' … … 454 454 @param value: the time when the session between the 455 455 principal and the SAML authority ends 456 @type : datetime.datetime456 @type value: datetime.datetime 457 457 @raise NotImplementedError: abstract method 458 458 ''' … … 476 476 @param value: the DNS domain and IP address of the system where 477 477 the principal was authenticated 478 @type : ?478 @type value: ? 479 479 @raise NotImplementedError: abstract method 480 480 ''' … … 485 485 486 486 @return: the context used to authenticate the subject 487 @ type: ?487 @rtype: ? 488 488 @raise NotImplementedError: abstract method 489 489 ''' … … 494 494 495 495 @param value: the context used to authenticate the subject 496 @type : ?496 @type value: ? 497 497 @raise NotImplementedError: abstract method 498 498 ''' … … 608 608 """Test for equality against an input decision type 609 609 610 @param version: decision type611 @type version: ndg.saml.saml2.core.DecisionType or basestring610 @param decision: decision type 611 @type decision: ndg.saml.saml2.core.DecisionType or basestring 612 612 @return: True if input and this object match 613 613 @rtype: bool … … 761 761 URIs (functionality likely to be deprecated) 762 762 @type safeNormalizationChars: string 763 @param **kw: keywords for the initialisation of the parent classes'763 @param kw: keywords for the initialisation of the parent classes' 764 764 attributes 765 @type **kw: dict765 @type kw: dict 766 766 ''' 767 767 super(AuthzDecisionStatement, self).__init__(**kw) … … 825 825 '''Get normalisation safe chars 826 826 @return: normalisation safe chars 827 @rtype value: basetring827 @rtype: basetring 828 828 ''' 829 829 return self.__safeNormalizationChars … … 865 865 866 866 @param value: the new Resource attrib value of this statement 867 @type : basestring867 @type value: basestring 868 868 @raise TypeError: input value is incorrect type 869 869 ''' … … 1029 1029 def __init__(self, **kw): 1030 1030 ''' 1031 @param **kw: keywords for initialisation of parent class attributes1032 @type **kw: dict1031 @param kw: keywords for initialisation of parent class attributes 1032 @type kw: dict 1033 1033 ''' 1034 1034 super(Subject, self).__init__(**kw) … … 1072 1072 def _setBaseID(self, value): 1073 1073 """Set base identifier 1074 @param : base identifier1075 @type : basestring1074 @param value: base identifier 1075 @type value: basestring 1076 1076 @raise TypeError: invalid input value type 1077 1077 """ … … 1094 1094 def _setNameID(self, value): 1095 1095 """Set name identifier 1096 @param : name identifier1097 @type : basestring1096 @param value: name identifier 1097 @type value: basestring 1098 1098 @raise TypeError: invalid input value type 1099 1099 """ … … 1117 1117 """Set encrypted identifier 1118 1118 1119 @param : encrypted identifier1120 @type : any type1119 @param value: encrypted identifier 1120 @type value: any type 1121 1121 @raise TypeError: invalid input value type 1122 1122 """ … … 1250 1250 def __init__(self, **kw): 1251 1251 ''' 1252 @param **kw: keywords to set attributes of parent class1253 @type **kw: dict1252 @param kw: keywords to set attributes of parent class 1253 @type kw: dict 1254 1254 ''' 1255 1255 super(AbstractNameIDType, self).__init__(**kw) … … 1299 1299 def _setValue(self, value): 1300 1300 """Set name value 1301 @param : name value1302 @type : string1301 @param value: name value 1302 @type value: string 1303 1303 @raise TypeError: invalid input value type 1304 1304 """ … … 1320 1320 def _setNameQualifier(self, value): 1321 1321 """Set name qualifier 1322 @param : name qualifier1323 @type : string1322 @param value: name qualifier 1323 @type value: string 1324 1324 """ 1325 1325 self.__nameQualifier = value … … 1338 1338 def _setSPNameQualifier(self, value): 1339 1339 """Set SP name qualifier 1340 @param : SP name qualifier1341 @type : string1340 @param value: SP name qualifier 1341 @type value: string 1342 1342 """ 1343 1343 self.__spNameQualifier = value … … 1356 1356 def _setFormat(self, format): 1357 1357 """Set name format 1358 @param : name format1359 @type : string1358 @param format: name format 1359 @type format: string 1360 1360 @raise TypeError: invalid input value type 1361 1361 """ … … 1377 1377 def _setSPProvidedID(self, value): 1378 1378 """Set SP provided identifier 1379 @param : SP provided identifier1380 @type : string1379 @param value: SP provided identifier 1380 @type value: string 1381 1381 """ 1382 1382 self.__spProvidedID = value … … 1550 1550 1551 1551 @param value: the date/time before which the assertion is invalid 1552 @type : datetime.datetime1552 @type value: datetime.datetime 1553 1553 ''' 1554 1554 if not isinstance(value, datetime): … … 1570 1570 @param value: the date/time on, or after, which the assertion 1571 1571 is invalid 1572 @type : datetime.datetime1572 @type value: datetime.datetime 1573 1573 ''' 1574 1574 if not isinstance(value, datetime): … … 1919 1919 1920 1920 @return: subject of this assertion 1921 @rtype subject: ndg.saml.saml2.core.Subject1921 @rtype: ndg.saml.saml2.core.Subject 1922 1922 """ 1923 1923 return self.__subject … … 2054 2054 def __init__(self, **kw): 2055 2055 """ 2056 @param **kw: keywords for setting attributes of parent class2057 @type **kw: dict2056 @param kw: keywords for setting attributes of parent class 2057 @type kw: dict 2058 2058 """ 2059 2059 super(XSStringAttributeValue, self).__init__(**kw) … … 2086 2086 def _setValue(self, value): 2087 2087 """Set value of XS string 2088 @param : value2089 @type : string2088 @param value: value 2089 @type value: string 2090 2090 @raise TypeError: invalid input value type 2091 2091 """ … … 2136 2136 def __init__(self, **kw): 2137 2137 """ 2138 @param **kw: keywords for setting attributes of parent class2139 @type **kw: dict2138 @param kw: keywords for setting attributes of parent class 2139 @type kw: dict 2140 2140 """ 2141 2141 super(StatusDetail, self).__init__(**kw) … … 2243 2243 def _setValue(self, value): 2244 2244 ''' 2245 @param __value: message text2246 @type __value: basestring2245 @param value: message text 2246 @type value: basestring 2247 2247 @raise TypeError: incorrect type for input value 2248 2248 ''' … … 2425 2425 def __init__(self, **kw): 2426 2426 """ 2427 @param **kw: keywords to initialise superclass attributes2428 @type **kw: dict2427 @param kw: keywords to initialise superclass attributes 2428 @type kw: dict 2429 2429 """ 2430 2430 super(StatusCode, self).__init__(**kw) … … 2463 2463 def _setStatusCode(self, value): 2464 2464 """Set child status code 2465 @param __value: status code value2466 @type __value: ndg.saml.saml2.core.StatusCode2465 @param value: status code value 2466 @type value: ndg.saml.saml2.core.StatusCode 2467 2467 """ 2468 2468 if not isinstance(value, StatusCode): … … 3433 3433 '''Create assertion URI reference 3434 3434 3435 @param **kw: keywords to initialise superclasses3436 @type **kw: dict3435 @param kw: keywords to initialise superclasses 3436 @type kw: dict 3437 3437 ''' 3438 3438 super(AssertionURIRef, self).__init__(**kw) … … 3461 3461 '''Get assertion URI 3462 3462 3463 @return assertionURI: assertion URI3464 @rtype assertionURI: basestring3463 @return: assertion URI 3464 @rtype: basestring 3465 3465 ''' 3466 3466 return self.__assertionURI … … 3469 3469 '''Set assertion URI 3470 3470 3471 @param assertionURI: assertion URI3472 @type assertionURI: basestring3471 @param value: assertion URI 3472 @type value: basestring 3473 3473 @raise TypeError: incorrect input value type 3474 3474 ''' … … 3510 3510 def __init__(self, **kw): 3511 3511 ''' 3512 @param **kw: keywords for superclass initialisation3513 @type **kw: dict3512 @param kw: keywords for superclass initialisation 3513 @type kw: dict 3514 3514 ''' 3515 3515 super(AssertionIDRef, self).__init__(**kw) … … 3657 3657 '''Create an authorization evidence type 3658 3658 3659 @param **kw: keyword to initialise superclasses3660 @type **kw: dict3659 @param kw: keyword to initialise superclasses 3660 @type kw: dict 3661 3661 ''' 3662 3662 super(Evidence, self).__init__(**kw) … … 3868 3868 def _getSafeNormalizationChars(self): 3869 3869 ''' 3870 @ param value: safe normalisation characters for input into normalisation3870 @return: safe normalisation characters for input into normalisation 3871 3871 of resource URI. 3872 @type value: string 3873 @raise TypeError: incorrect type for input value 3872 @rtype: string 3874 3873 ''' 3875 3874 return self.__safeNormalizationChars … … 4124 4123 def __init__(self, **kw): 4125 4124 ''' 4126 @param **kw: keywords for initialisation of superclass4127 @type **kw: dict4125 @param kw: keywords for initialisation of superclass 4126 @type kw: dict 4128 4127 ''' 4129 4128 super(StatusResponseType, self).__init__(**kw) … … 4306 4305 """Set issuer of response 4307 4306 4308 @param value: issuer of this response4307 @param issuer: issuer of this response 4309 4308 sending this response 4310 @type value: ndg.saml.saml2.core.Issuer4309 @type issuer: ndg.saml.saml2.core.Issuer 4311 4310 @raise TypeError: incorrect type for input value 4312 4311 """ … … 4412 4411 def __init__(self, **kw): 4413 4412 ''' 4414 @param **kw: keywords to initialise superclass instance4415 @type **kw: dict4413 @param kw: keywords to initialise superclass instance 4414 @type kw: dict 4416 4415 ''' 4417 4416 super(Response, self).__init__(**kw) -
TI12-security/trunk/ndg_saml/ndg/saml/xml/etree.py
r6913 r6914 186 186 wraps the PrettyPrint class 187 187 188 @param *arg: arguments to pretty print function189 @type *arg: tuple190 @param **kw: keyword arguments to pretty print function191 @type **kw: dict188 @param arg: arguments to pretty print function 189 @type arg: tuple 190 @param kw: keyword arguments to pretty print function 191 @type kw: dict 192 192 ''' 193 193 … … 534 534 """Make a tree of a XML elements based on the attribute statement 535 535 536 @type a ssertion: saml.saml2.core.AttributeStatement537 @param a ssertion: Attribute Statement to be represented as an536 @type attributeStatement: saml.saml2.core.AttributeStatement 537 @param attributeStatement: Attribute Statement to be represented as an 538 538 ElementTree Element 539 539 @type attributeValueElementTreeFactoryKw: dict … … 602 602 """Make a tree of a XML elements based on the authzDecision statement 603 603 604 @type assertion: saml.saml2.core.AuthzDecisionStatement 605 @param assertion: AuthzDecision Statement to be represented as an 606 ElementTree Element 607 factory 604 @type authzDecisionStatement: saml.saml2.core.AuthzDecisionStatement 605 @param authzDecisionStatement: AuthzDecision Statement to be represented 606 as an ElementTree Element 608 607 @rtype: ElementTree.Element 609 608 @return: ElementTree Element … … 1315 1314 def toXML(cls, status): 1316 1315 """Create an XML representation of the input SAML subject object 1317 @type s ubject: saml.saml2.core.Status1318 @param s ubject: SAML subject1316 @type status: saml.saml2.core.Status 1317 @param status: SAML subject 1319 1318 @rtype: ElementTree.Element 1320 1319 @return: subject as ElementTree XML element -
TI12-security/trunk/ndg_saml/setup.py
r6900 r6914 7 7 copyright and licence information are included here: 8 8 9 Copyright [2005] [University Corporation for Advanced Internet Development, Inc.] 9 Copyright [2005] [University Corporation for Advanced Internet Development, 10 Inc.] 10 11 11 12 Licensed under the Apache License, Version 2.0 (the "License"); … … 26 27 __license__ = "http://www.apache.org/licenses/LICENSE-2.0" 27 28 __contact__ = "Philip.Kershaw@stfc.ac.uk" 28 __revision__ = '$Id :$'29 __revision__ = '$Id$' 29 30 30 31 # Bootstrap setuptools if necessary. … … 32 33 use_setuptools() 33 34 from setuptools import setup, find_packages 34 import os35 35 36 36 _longDescription = """\ … … 46 46 47 47 setup( 48 name = 'ndg_s ecurity_saml',48 name = 'ndg_saml', 49 49 version = '0.4', 50 50 description = ('SAML 2.0 implementation for the NERC DataGrid ' … … 58 58 license = 'http://www.apache.org/licenses/LICENSE-2.0', 59 59 packages = find_packages(), 60 namespace_packages = [ ],60 namespace_packages = ['ndg'], 61 61 include_package_data = True, 62 62 classifiers = [
Note: See TracChangeset
for help on using the changeset viewer.