public void ClaimCurrentCacheType(AuthCacheType authCacheType) { _keyCipher.AuthProvider.ClaimCurrentCacheType(authCacheType); _keyStorage.Clear(); _keyStorage = KeyStorageFactory.Create(_keyCipher.AuthProvider); if (authCacheType == AuthCacheType.Local) { Settings.Instance.WinStorageEnabled = false; } // todo migrate }
public KeyManager(IntPtr windowHandle) { _keePassMainWindowHandle = windowHandle; _keyCipher = new KeyCipher(windowHandle); _keyStorage = KeyStorageFactory.Create(_keyCipher.AuthProvider); }