Files
Akari.Prototype/Akari.Prototype.Server/Services/IAuthManager.cs
2021-06-05 21:36:01 +02:00

23 lines
520 B
C#

using Akari.Prototype.Server.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Threading.Tasks;
namespace Akari.Prototype.Server.Services
{
public interface IAuthManager
{
IEnumerable<KeyValuePair<string, TimedEntry<AesGcm>>> Pairs { get; }
void GenerateSalt(string name);
void Auth(string name, byte[] token);
bool TryGetKey(string name, out AesGcm key);
bool Remove(string name);
}
}