Exemple #1
0
        private string getDecryptedPassword()
        {
            string  password = null;
            Mandant m        = (Mandant)comboBox1.SelectedItem;

            log.Info("Retrieving decrypted password for encryption for mandant: " + JsonConvert.SerializeObject(m));
            password = this.server.getDecryptedPassword(m.id);
            log.Debug($"Retrieved plaintext password from server with length {password.Length}");
            return(password);
        }
Exemple #2
0
 private string getSelectedMandantName()
 {
     log.Debug("Getting the sleected mandant name");
     if (comboBox1.SelectedItem != null)
     {
         Mandant selectedMandant = (Mandant)comboBox1.SelectedItem;
         string  mandantName     = selectedMandant.name;
         log.Debug($"Selected mandant name is {mandantName}");
         return(mandantName);
     }
     log.Error("Could not get selected mandant name");
     return(null);
 }