diff --git a/KeyManager.Library.KeyStore.File/FileKeyStore.cs b/KeyManager.Library.KeyStore.File/FileKeyStore.cs index aaf1e85..25c2622 100644 --- a/KeyManager.Library.KeyStore.File/FileKeyStore.cs +++ b/KeyManager.Library.KeyStore.File/FileKeyStore.cs @@ -37,15 +37,8 @@ public override Task Open() log.Info(String.Format("Opening the key store `{0}`...", GetFileProperties().Fullpath)); if (!System.IO.Directory.Exists(GetFileProperties().Fullpath)) { - if (CreateIfMissing) - { - System.IO.Directory.CreateDirectory(GetFileProperties().Fullpath); - } - else - { - log.Error(string.Format("Cannot open the key sore `{0}`.", GetFileProperties().Fullpath)); - throw new KeyStoreException("Cannot open the key sore."); - } + log.Error(string.Format("Cannot open the key sore `{0}`.", GetFileProperties().Fullpath)); + throw new KeyStoreException("Cannot open the key sore."); } log.Info("Key store opened."); return Task.CompletedTask; diff --git a/KeyManager.Library/KeyStore/KeyStore.cs b/KeyManager.Library/KeyStore/KeyStore.cs index 5d789a7..2c6ea26 100644 --- a/KeyManager.Library/KeyStore/KeyStore.cs +++ b/KeyManager.Library/KeyStore/KeyStore.cs @@ -61,8 +61,6 @@ protected KeyStore() public IDictionary DefaultKeyEntries { get; set; } - public bool CreateIfMissing { get; set; } - public Task CheckKeyEntryExists(KeyEntry keyEntry) { return CheckKeyEntryExists(keyEntry.Identifier, keyEntry.KClass); diff --git a/KeyManager/HomeControl.xaml b/KeyManager/HomeControl.xaml index 67325f3..be68a19 100644 --- a/KeyManager/HomeControl.xaml +++ b/KeyManager/HomeControl.xaml @@ -18,12 +18,6 @@ - - - -