예제 #1
0
 public CredentialPicker(PwEntry pe, KprEntrySettings peSettings, PwDatabase database, KprConfig config)
 {
     _pe         = pe;
     _peSettings = peSettings;
     _database   = database;
     _config     = config;
 }
예제 #2
0
        /// <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);
        }