/// <summary> /// both Credential and security passwords are in the same table, updated by this method /// </summary> private void UpdateCredentialBasePasswords() { foreach (var credentials in this.database.CredentialBase) { var guarded = new GuardedCredential(credentials, this.persistenceSecurity); guarded.UpdatePasswordByNewKeyMaterial(this.newKeyMaterial); } }
public void UpdatePasswordsByNewKeyMaterial(string newKeyMaterial) { foreach (var credentials in this.cache) { var guarded = new GuardedCredential(credentials, this.persistenceSecurity); guarded.UpdatePasswordByNewKeyMaterial(newKeyMaterial); } this.Save(); }