Esempio n. 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))
Esempio n. 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)
Esempio n. 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))
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)