From 6a88524f8efe19cbc7b2968bb552f61ef2624e60 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Sat, 10 Jun 2017 10:52:13 -0400 Subject: [PATCH] rename to AndroidKeyStoreStorageService --- src/Android/Android.csproj | 2 +- src/Android/MainApplication.cs | 2 +- ...ckedStorageService.cs => AndroidKeyStoreStorageService.cs} | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) rename src/Android/Services/{KeyStoreBackedStorageService.cs => AndroidKeyStoreStorageService.cs} (98%) diff --git a/src/Android/Android.csproj b/src/Android/Android.csproj index 7327dc961..274b13d80 100644 --- a/src/Android/Android.csproj +++ b/src/Android/Android.csproj @@ -314,7 +314,7 @@ - + diff --git a/src/Android/MainApplication.cs b/src/Android/MainApplication.cs index 9909b72e6..f0fefbf95 100644 --- a/src/Android/MainApplication.cs +++ b/src/Android/MainApplication.cs @@ -211,7 +211,7 @@ namespace Bit.Android ISecureStorageService secureStorage; try { - secureStorage = new KeyStoreBackedStorageService(CrossSettings.Current); + secureStorage = new AndroidKeyStoreStorageService(CrossSettings.Current); } catch { diff --git a/src/Android/Services/KeyStoreBackedStorageService.cs b/src/Android/Services/AndroidKeyStoreStorageService.cs similarity index 98% rename from src/Android/Services/KeyStoreBackedStorageService.cs rename to src/Android/Services/AndroidKeyStoreStorageService.cs index e884d0b23..6a6e18d83 100644 --- a/src/Android/Services/KeyStoreBackedStorageService.cs +++ b/src/Android/Services/AndroidKeyStoreStorageService.cs @@ -15,7 +15,7 @@ using Javax.Crypto.Spec; namespace Bit.Android.Services { - public class KeyStoreBackedStorageService : ISecureStorageService + public class AndroidKeyStoreStorageService : ISecureStorageService { private const string AndroidKeyStore = "AndroidKeyStore"; private const string KeyAlias = "bitwardenKey"; @@ -28,7 +28,7 @@ namespace Bit.Android.Services private readonly KeyStore _keyStore; private readonly ISecureStorageService _oldKeyStorageService; - public KeyStoreBackedStorageService(ISettings settings) + public AndroidKeyStoreStorageService(ISettings settings) { _oldAndroid = Build.VERSION.SdkInt < BuildVersionCodes.M; _rsaMode = _oldAndroid ? "RSA/ECB/PKCS1Padding" : "RSA/ECB/OAEPWithSHA-1AndMGF1Padding";