internal SqlPersistence() { this.reLoadClock = new Timer(DEFAULT_REFRESH_INTERVAL); this.security = new SqlPersistenceSecurity(); this.security.AssignPersistence(this); this.Dispatcher = new DataDispatcher(); }
internal SqlPersistence(FavoriteIcons favoriteIcons, ConnectionManager connectionManager) { this.favoriteIcons = favoriteIcons; this.connectionManager = connectionManager; this.reLoadClock = new Timer(DEFAULT_REFRESH_INTERVAL); this.security = new SqlPersistenceSecurity(); this.security.AssignPersistence(this); this.Dispatcher = new DataDispatcher(); }
internal SqlPersistence(FavoriteIcons favoriteIcons, ConnectionManager connectionManager) { this.favoriteIcons = favoriteIcons; this.connectionManager = connectionManager; this.reLoadClock = new Timer(DEFAULT_REFRESH_INTERVAL); this.security = new SqlPersistenceSecurity(); this.security.OnUpdatePasswordsByNewMasterPassword += this.UpdatePasswordsByNewMasterPassword; this.Dispatcher = new DataDispatcher(); }
private void Configure(string connectionString, string oldPassword, string newPassword) { // persistence doesn't have to be fully configured, we need only the persistence passwords part this.persistenceSecurity = new SqlPersistenceSecurity(); this.persistenceSecurity.UpdateDatabaseKey(connectionString, oldPassword); if (!string.IsNullOrEmpty(newPassword)) this.newStoredKey = PasswordFunctions2.CalculateStoredMasterPasswordKey(newPassword); this.newKeyMaterial = PasswordFunctions2.CalculateMasterPasswordKey(newPassword, this.newStoredKey); }
private void Configure(string connectionString, string oldPassword, string newPassword) { // persistence doesn't have to be fully configured, we need only the persistence passwords part this.persistenceSecurity = new SqlPersistenceSecurity(); this.persistenceSecurity.UpdateDatabaseKey(connectionString, oldPassword); if (!string.IsNullOrEmpty(newPassword)) { this.newStoredKey = PasswordFunctions2.CalculateStoredMasterPasswordKey(newPassword); } this.newKeyMaterial = PasswordFunctions2.CalculateMasterPasswordKey(newPassword, this.newStoredKey); }
public StoredCredentials(SqlPersistenceSecurity persistenceSecurity, DataDispatcher dispatcher) { this.persistenceSecurity = persistenceSecurity; this.dispatcher = dispatcher; }
internal SqlPersistence() { this.security = new SqlPersistenceSecurity(); this.security.AssignPersistence(this); }