internal SqlPersistence()
 {
     this.reLoadClock = new Timer(DEFAULT_REFRESH_INTERVAL);
     this.security = new SqlPersistenceSecurity();
     this.security.AssignPersistence(this);
     this.Dispatcher = new DataDispatcher();
 }
示例#2
0
 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();
 }
示例#3
0
 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);
        }
示例#5
0
        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;
 }
示例#7
0
 internal SqlPersistence()
 {
     this.security = new SqlPersistenceSecurity();
     this.security.AssignPersistence(this);
 }