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/sessionMgr.tac

    r4120 r4129  
    4242        SessionMgrService as _SessionMgrService 
    4343from ndg.security.server.SessionMgr import SessionMgr 
    44 from ndg.security.common.wsSecurity import SignatureHandler 
     44from ndg.security.common.wssecurity.dom import SignatureHandler 
    4545from ndg.security.server.twisted import WSSecurityHandler, \ 
    4646        WSSecurityHandlerChainFactory 
     
    218218     
    219219    # Inclusive namespaces for Exclusive C14N 
    220         refC14nKw = {'unsuppressedPrefixes': srv.sm['wssRefInclNS']} 
    221         signedInfoC14nKw = {'unsuppressedPrefixes': 
    222                                             srv.sm['wssSignedInfoInclNS']} 
     220        refC14nInclNS = srv.sm['wssRefInclNS'] 
     221        signedInfoC14nInclNS = srv.sm['wssSignedInfoInclNS'] 
    223222 
    224223        WSSecurityHandler.signatureHandler = SignatureHandler(\ 
     
    228227                            signingPriKeyPwd=srv.sm['keyPwd'], 
    229228                            caCertFilePathList=srv.sm.get('caCertFileList'), 
    230                                         refC14nKw=refC14nKw, 
    231                                         signedInfoC14nKw=signedInfoC14nKw, 
     229                                        refC14nInclNS=refC14nInclNS, 
     230                                        signedInfoC14nInclNS=signedInfoC14nInclNS, 
    232231                                        applySignatureConfirmation=True) 
    233232 
Note: See TracChangeset for help on using the changeset viewer.