Exemple #1
0
 /// <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);
     }
 }
Exemple #2
0
        public void UpdatePasswordsByNewKeyMaterial(string newKeyMaterial)
        {
            foreach (var credentials in this.cache)
            {
                var guarded = new GuardedCredential(credentials, this.persistenceSecurity);
                guarded.UpdatePasswordByNewKeyMaterial(newKeyMaterial);
            }

            this.Save();
        }