mirror of
https://gitlab.com/fabinfra/fabaccess/borepin.git
synced 2025-03-12 14:51:44 +01:00
29 lines
645 B
C#
29 lines
645 B
C#
using Borepin.Service.Storage;
|
|
using System.Threading.Tasks;
|
|
using Xamarin.Essentials;
|
|
|
|
namespace Borepin.iOS.Services
|
|
{
|
|
public class SecretStorageService : ISecretStorageService
|
|
{
|
|
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);
|
|
}
|
|
}
|
|
} |