Exemple #1
0
 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
 }
Exemple #2
0
 public KeyManager(IntPtr windowHandle)
 {
     _keePassMainWindowHandle = windowHandle;
     _keyCipher  = new KeyCipher(windowHandle);
     _keyStorage = KeyStorageFactory.Create(_keyCipher.AuthProvider);
 }