Changeset 6403


Ignore:
Timestamp:
25/01/10 16:37:57 (9 years ago)
Author:
pjkersha
Message:
 
Location:
TI12-security/trunk/WSSecurity/ndg/wssecurity/common
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/WSSecurity/ndg/wssecurity/common/encryptionhandler/__init__.py

    r6069 r6403  
    3232    because it's assigned to 'BLOCK_3DES' ??''' 
    3333    BLOCK_TRIPLEDES = "http://www.w3.org/2001/04/xmlenc#tripledes-cbc" 
     34     
     35     
     36class EncryptionHandlerBase(object): 
     37    """ZSI based Encryption handler virtual base class""" 
     38     
     39    def decrypt(self, parsedSOAP): 
     40        """Decrypt a message 
     41         
     42        @type parsedSOAP: ZSI.parse.ParsedSoap 
     43        @param parsedSOAP: object contain parsed SOAP message received from 
     44        sender"""         
     45        raise NotImplementedError() 
     46     
     47    def encrypt(self, soapWriter): 
     48        '''Encrypt the message 
     49         
     50        @type soapWriter: ZSI.writer.SoapWriter 
     51        @param soapWriter: ZSI object to write SOAP message 
     52        ''' 
     53        raise NotImplementedError() 
  • TI12-security/trunk/WSSecurity/ndg/wssecurity/common/signaturehandler/__init__.py

    r6399 r6403  
    270270                optName = optName.replace(prefix, '', 1) 
    271271                setattr(self, optName, BaseSignatureHandler.expandVars(val)) 
    272                                    
     272                 
     273    def sign(self, soapWriter): 
     274        '''Sign the message body and binary security token of a SOAP message 
     275         
     276        Derived class must implement 
     277         
     278        @type soapWriter: ZSI.writer.SoapWriter 
     279        @param soapWriter: ZSI object to write SOAP message 
     280        ''' 
     281        raise NotImplementedError() 
     282     
     283    def verify(self, parsedSOAP): 
     284        """Verify signature.  Derived class must implement 
     285         
     286        @type parsedSOAP: ZSI.parse.ParsedSoap 
     287        @param parsedSOAP: object contain parsed SOAP message received from 
     288        sender"""         
     289        raise NotImplementedError() 
     290                                       
    273291    def _setReqBinarySecurityTokValType(self, value): 
    274292        """Set ValueType attribute for BinarySecurityToken used in a request 
Note: See TracChangeset for help on using the changeset viewer.