Ignore:
Timestamp:
20/08/08 14:03:20 (11 years ago)
Author:
cbyrom
Message:

General refactoring and updating of code, including:

Removal of refC14nKw and singnedInfoC14nKw keywords in wsssecurity session manager config
(the refC14nInclNS and signedInfoC14nInclNS keywords are sufficient);
Creation of new DOM signature handler class, dom.py, based on the wsSecurity
class;
Abstraction of common code between dom.py and etree.py into new parent
class, BaseSignatureHandler?.py.
Fixing and extending use of properties in the SignatureHandler? code.
Fixing a few bugs with the original SignatureHandler? code.
Updating of test cases to new code/code structure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/Tests/Echo/wsSecurity.py

    r2909 r4129  
    137137         
    138138        # Signed Info - Canonicalization method 
    139         signedInfoC14nKw = {} 
    140         signedInfoC14nKw['unsuppressedPrefixes'] = ['xsi', 'xsd', 'SOAP-ENV', 'ds', 'wsse'] 
     139        signedInfoC14nInclNS = ['xsi', 'xsd', 'SOAP-ENV', 'ds', 'wsse'] 
     140        signedInfoC14nKw = {'unsuppressedPrefixes': signedInfoC14nInclNS}  
    141141        c14nMethodElem = signedInfoElem.createAppendElement(DSIG.BASE, 
    142142                                                    'CanonicalizationMethod') 
     
    146146                                                'InclusiveNamespaces') 
    147147        c14nInclNamespacesElem.node.setAttribute('PrefixList',  
    148                         ' '.join(signedInfoC14nKw['unsuppressedPrefixes'])) 
     148                        ' '.join(signedInfoC14nInclNS)) 
    149149         
    150150        # Signed Info - Signature method 
Note: See TracChangeset for help on using the changeset viewer.