Example #1
0
 def GetKeyPassphrase(self,queue,incorrect=False):
     if (incorrect):
         ppd = passphraseDialog(self.parentWindow,self.progressDialog,wx.ID_ANY,'Unlock Key',self.displayStrings.passphrasePromptIncorrect,"OK","Cancel")
     else:
         ppd = passphraseDialog(self.parentWindow,self.progressDialog,wx.ID_ANY,'Unlock Key',self.displayStrings.passphrasePrompt,"OK","Cancel")
     (canceled,passphrase) = ppd.getPassword()
     queue.put((canceled,passphrase))
Example #2
0
 def getLoginPassword(self,incorrect=False):
     if (not incorrect):
         ppd = passphraseDialog(self.parentWindow,self.progressDialog,wx.ID_ANY,'Login Password',self.displayStrings.passwdPrompt.format(**self.__dict__),"OK","Cancel")
     else:
         ppd = passphraseDialog(self.parentWindow,self.progressDialog,wx.ID_ANY,'Login Password',self.displayStrings.passwdPromptIncorrect.format(**self.__dict__),"OK","Cancel")
     (canceled,password) = ppd.getPassword()
     if canceled:
         self.cancel()
         return
     self.password = password
     event = KeyDist.sshKeyDistEvent(KeyDist.EVT_KEYDIST_COPYID,self)
     wx.PostEvent(self.notifywindow.GetEventHandler(),event)
Example #3
0
 def GetKeyPassphrase(self, queue, incorrect=False):
     if (incorrect):
         ppd = passphraseDialog(
             self.parentWindow, self.progressDialog, wx.ID_ANY,
             'Unlock Key', self.displayStrings.passphrasePromptIncorrect,
             "OK", "Cancel")
     else:
         ppd = passphraseDialog(self.parentWindow, self.progressDialog,
                                wx.ID_ANY, 'Unlock Key',
                                self.displayStrings.passphrasePrompt, "OK",
                                "Cancel")
     (canceled, passphrase) = ppd.getPassword()
     queue.put((canceled, passphrase))
Example #4
0
 def GetKeyPassphrase(self,incorrect=False):
     if (incorrect):
         ppd = passphraseDialog(self.parentWindow,self.progressDialog,wx.ID_ANY,'Unlock Key',self.displayStrings.passphrasePromptIncorrect,"OK","Cancel")
     else:
         ppd = passphraseDialog(self.parentWindow,self.progressDialog,wx.ID_ANY,'Unlock Key',self.displayStrings.passphrasePrompt,"OK","Cancel")
     (canceled,passphrase) = ppd.getPassword()
     if (canceled):
         self.cancel("Sorry, I can't continue without the passphrase for that key. If you've forgotten the passphrase, you could remove the key and generate a new one. The key is probably located in\n\n" + self.keyModel.getPrivateKeyFilePath() + "*")
         return
     else:
         self.password = passphrase
         event = KeyDist.sshKeyDistEvent(KeyDist.EVT_KEYDIST_LOADKEY,self)
         wx.PostEvent(self.notifywindow.GetEventHandler(),event)
Example #5
0
 def getLoginPassword(self, incorrect=False):
     if (not incorrect):
         ppd = passphraseDialog(
             self.parentWindow, self.progressDialog, wx.ID_ANY,
             'Login Password',
             self.displayStrings.passwdPrompt.format(**self.__dict__), "OK",
             "Cancel")
     else:
         ppd = passphraseDialog(
             self.parentWindow, self.progressDialog, wx.ID_ANY,
             'Login Password',
             self.displayStrings.passwdPromptIncorrect.format(
                 **self.__dict__), "OK", "Cancel")
     (canceled, password) = ppd.getPassword()
     if canceled:
         self.cancel()
         return
     self.password = password
     event = KeyDist.sshKeyDistEvent(KeyDist.EVT_KEYDIST_COPYID, self)
     wx.PostEvent(self.notifywindow.GetEventHandler(), event)
Example #6
0
 def GetKeyPassphrase(self, incorrect=False):
     if (incorrect):
         ppd = passphraseDialog(
             self.parentWindow, self.progressDialog, wx.ID_ANY,
             'Unlock Key', self.displayStrings.passphrasePromptIncorrect,
             "OK", "Cancel")
     else:
         ppd = passphraseDialog(self.parentWindow, self.progressDialog,
                                wx.ID_ANY, 'Unlock Key',
                                self.displayStrings.passphrasePrompt, "OK",
                                "Cancel")
     (canceled, passphrase) = ppd.getPassword()
     if (canceled):
         self.cancel(
             "Sorry, I can't continue without the passphrase for that key. If you've forgotten the passphrase, you could remove the key and generate a new one. The key is probably located in\n\n"
             + self.keyModel.getPrivateKeyFilePath() + "*")
         return
     else:
         self.password = passphrase
         event = KeyDist.sshKeyDistEvent(KeyDist.EVT_KEYDIST_LOADKEY, self)
         wx.PostEvent(self.notifywindow.GetEventHandler(), event)