public CredentialPicker(PwEntry pe, KprEntrySettings peSettings, PwDatabase database, KprConfig config) { _pe = pe; _peSettings = peSettings; _database = database; _config = config; }
/// <summary> /// Retrieves the KprEntrySettings of a given entry. /// </summary> /// <param name="pe"></param> /// <returns></returns> public static KprEntrySettings GetEntrySettings(PwEntry pe) { var entrySettingsString = pe.Strings.ReadSafe(Util.KprEntrySettingsField); var entrySettings = JsonConvert.DeserializeObject <KprEntrySettings>(entrySettingsString, jsonSerializerSettings); if (entrySettings == null) { entrySettings = new KprEntrySettings(); } return(entrySettings); }