mirror of
https://github.com/bitwarden/mobile
synced 2025-12-05 23:53:33 +00:00
rename to AndroidKeyStoreStorageService
This commit is contained in:
@@ -314,7 +314,7 @@
|
||||
<Compile Include="Controls\ExtendedPickerRenderer.cs" />
|
||||
<Compile Include="Controls\ExtendedEntryRenderer.cs" />
|
||||
<Compile Include="Services\HttpService.cs" />
|
||||
<Compile Include="Services\KeyStoreBackedStorageService.cs" />
|
||||
<Compile Include="Services\AndroidKeyStoreStorageService.cs" />
|
||||
<Compile Include="Services\LocalizeService.cs" />
|
||||
<Compile Include="MainApplication.cs" />
|
||||
<Compile Include="Resources\Resource.Designer.cs" />
|
||||
|
||||
@@ -211,7 +211,7 @@ namespace Bit.Android
|
||||
ISecureStorageService secureStorage;
|
||||
try
|
||||
{
|
||||
secureStorage = new KeyStoreBackedStorageService(CrossSettings.Current);
|
||||
secureStorage = new AndroidKeyStoreStorageService(CrossSettings.Current);
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
||||
@@ -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";
|
||||
Reference in New Issue
Block a user