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