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/ndg.security.server/ndg/security/server/conf/attAuthority.tac

    r4110 r4129  
    4242        AttAuthorityAccessDenied 
    4343         
    44 from ndg.security.common.wsSecurity import SignatureHandler 
     44from ndg.security.common.wssecurity.dom import SignatureHandler 
    4545from ndg.security.server.twisted import WSSecurityHandlerChainFactory, \ 
    4646        WSSecurityHandler 
     
    248248     
    249249    # Inclusive namespaces for Exclusive C14N 
    250     refC14nKw = {'unsuppressedPrefixes': srv.aa['wssRefInclNS']} 
    251     signedInfoC14nKw = {'unsuppressedPrefixes': 
    252                         srv.aa['wssSignedInfoInclNS']} 
     250    refC14nInclNS = srv.aa['wssRefInclNS'] 
     251    signedInfoC14nInclNS = srv.aa['wssSignedInfoInclNS'] 
    253252     
    254253    WSSecurityHandler.signatureHandler = SignatureHandler(\ 
     
    258257                                        signingPriKeyPwd=srv.aa['keyPwd'], 
    259258                                        caCertFilePathList=srv.aa.get('caCertFileList'), 
    260                                         refC14nKw=refC14nKw, 
    261                                         signedInfoC14nKw=signedInfoC14nKw, 
     259                                        refC14nInclNS=refC14nInclNS, 
     260                                        signedInfoC14nInclNS=signedInfoC14nInclNS, 
    262261                                        reqBinSecTokValType=srv.aa.get('reqBinSecTokValType'), 
    263262                                        applySignatureConfirmation=srv.aa.get('applySignatureConfirmation')) 
Note: See TracChangeset for help on using the changeset viewer.