Esempio n. 1
0
    def __deleteKey(self, args):
        if not self.__checkContext(): return
        if not self.__checkCardInfo(): return
        if not self.__checkSecurityInfo(): return
        
        keysInfo = args[0]

        for keyInfo in keysInfo:
            kvn = keyInfo[0]
            keyIndex = keyInfo[1]
            try:
                self.__handler.handleLog('deleteKey(%02X, %02X): Start ...' %(kvn, keyIndex))
                gp.deleteKey(self.__context, self.__cardInfo, self.__securityInfo, kvn, keyIndex)
                self.__handler.handleLog('deleteKey(%02X, %02X): succeeded.' %(kvn, keyIndex))
            except Exception, e:
                self.__handler.handleException(e)
Esempio n. 2
0
    def __deleteKey(self, args):
        if not self.__checkContext(): return
        if not self.__checkCardInfo(): return
        if not self.__checkSecurityInfo(): return

        self.__handler.handleActionBegin("delete key")

        keysInfo = args[0]

        for keyInfo in keysInfo:
            kvn = keyInfo[0]
            keyIndex = keyInfo[1]
            try:
                self.__handler.handleLog('deleteKey(%02X, %02X): Start ...' %
                                         (kvn, keyIndex))
                gp.deleteKey(self.__context, self.__cardInfo,
                             self.__securityInfo, kvn, keyIndex)
                self.__handler.handleLog(
                    'deleteKey(%02X, %02X): succeeded.' % (kvn, keyIndex),
                    wx.LOG_Info)
            except Exception, e:
                self.__handler.handleException(e)
Esempio n. 3
0
 def deleteKey(self, kvn, keyIndex):
     self.__checkContext()
     self.__checkCardInfo()
     self.__checkSecurityInfo()
     gp.deleteKey(self.__context, self.__cardInfo, self.__securityInfo, kvn, keyIndex)