Files
2021-06-07 01:44:47 +02:00

24 lines
604 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 TryGetKey(IEnumerable<string> names, out string name, out AesGcm key);
bool Remove(string name);
}
}