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/SimpleCA/wsSecurity.py

    r2909 r4129  
    135135         
    136136        # Signed Info - Canonicalization method 
    137         signedInfoC14nKw = {} 
    138         signedInfoC14nKw['unsuppressedPrefixes'] = ['xsi', 'xsd', 'SOAP-ENV', 'ds', 'wsse'] 
     137        signedInfoC14nInclNS = ['xsi', 'xsd', 'SOAP-ENV', 'ds', 'wsse'] 
     138        signedInfoC14nKw = {'unsuppressedPrefixes': signedInfoC14nInclNS}  
    139139        c14nMethodElem = signedInfoElem.createAppendElement(DSIG.BASE, 
    140140                                                    'CanonicalizationMethod') 
     
    144144                                                'InclusiveNamespaces') 
    145145        c14nInclNamespacesElem.node.setAttribute('PrefixList',  
    146                         ' '.join(signedInfoC14nKw['unsuppressedPrefixes'])) 
     146                        ' '.join(signedInfoC14nInclNS)) 
    147147         
    148148        # Signed Info - Signature method 
Note: See TracChangeset for help on using the changeset viewer.