Beispiel #1
0
 def doVerifyDGIntegrity(self, dgs=None):
     """  
     Execute the second part of the passive authentication: The verification of the dataGroups integrity.
     
     @raise dgException: If the data groups could not be read
     @raise paException: If the object is badly configured
     @raise openSSLException: See the openssl documentation 
     """
     res = None
     try:
         sod = self.readSod()
         if dgs == None:
             dgs = self.readDataGroups()
         res = self._pa.executePA(sod, dgs)
         return res
     except datagroup.DataGroupException as msg:
         res = msg
         raise datagroup.DataGroupException(msg)
     except passiveauthentication.PassiveAuthenticationException as msg:
         res = msg
         raise passiveauthentication.PassiveAuthenticationException(msg)
     except openssl.OpenSSLException as msg:
         res = msg
         raise openssl.OpenSSLException(msg)
     except Exception as msg:
         res = msg
     finally:
         self.log("Data Groups integrity verification: " + str(res))
Beispiel #2
0
 def doVerifySODCertificate(self):
     """  
     Execute the first part of the passive authentication: The verification of the certificate validity.
     
     @raise dgException: If the SOD could not be read
     @raise paException: If the object is badly configured
     @raise openSSLException: See the openssl documentation 
     """
     res = ""
     try:
         sod = self.readSod()
         res = self._pa.verifySODandCDS(sod, self.CSCADirectory)
         return res
     except datagroup.DataGroupException as msg:
         res = msg
         raise datagroup.DataGroupException(msg)
     except passiveauthentication.PassiveAuthenticationException as msg:
         res = msg
         raise passiveauthentication.PassiveAuthenticationException(msg)
     except openssl.OpenSSLException as msg:
         res = msg
         raise openssl.OpenSSLException(msg)
     finally:
         self.log("Document Signer Certificate verification: " + str(res))
        @raise dgException: If the SOD could not be read
        @raise paException: If the object is badly configured
        @raise openSSLException: See the openssl documentation
        """
        res = ""
        try:
            sod = self.readSod()
            res = self._pa.verifySODandCDS(sod, self.CSCADirectory)
            return res
        except datagroup.DataGroupException, msg:
            res = msg
            raise datagroup.DataGroupException(msg)
        except passiveauthentication.PassiveAuthenticationException, msg:
            res = msg
            raise passiveauthentication.PassiveAuthenticationException(msg)
        except openssl.OpenSSLException, msg:
            res = msg
            raise openssl.OpenSSLException(msg)
        finally:
            self.log("Document Signer Certificate verification: " + str(res))

    def doVerifyDGIntegrity(self, dgs=None):
        """
        Execute the second part of the passive authentication: The verification of the dataGroups integrity.

        @raise dgException: If the data groups could not be read
        @raise paException: If the object is badly configured
        @raise openSSLException: See the openssl documentation
        """
        res = None