public void RemoveCredential(string resource, string userName) { var account = BackingStore.FindAccountsForService(resource).Where(a => a.Username == userName).First(); if (account != null) { BackingStore.Delete(account, resource); } }
public string RetrievePassword(string resource, string userName) { return(BackingStore.FindAccountsForService(resource).Where(a => a.Username == userName).First()?.Properties[PasswordKey]); }
public bool Contains(string resource, string userName) { return(BackingStore.FindAccountsForService(resource).Where(a => a.Username == userName).Count() > 0); }