2022-01-03 21:13:03 +00:00
|
|
|
|
using Borepin.Service.Storage;
|
2021-03-30 20:54:53 +02:00
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using Xamarin.Essentials;
|
|
|
|
|
|
|
|
|
|
namespace Borepin.iOS.Services
|
|
|
|
|
{
|
2022-01-03 21:13:03 +00:00
|
|
|
|
public class SecretStorageService : ISecretStorageService
|
2021-03-30 20:54:53 +02:00
|
|
|
|
{
|
|
|
|
|
public Task<string> GetAsync(string key)
|
|
|
|
|
{
|
|
|
|
|
return SecureStorage.GetAsync(key);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool Remove(string key)
|
|
|
|
|
{
|
|
|
|
|
return SecureStorage.Remove(key);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void RemoveAll()
|
|
|
|
|
{
|
|
|
|
|
SecureStorage.RemoveAll();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Task SetAsync(string key, string value)
|
|
|
|
|
{
|
|
|
|
|
return SecureStorage.SetAsync(key, value);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|