Implement IKeyManager

This commit is contained in:
2021-06-07 01:44:47 +02:00
parent efbac54600
commit f539455e10
7 changed files with 331 additions and 55 deletions

View File

@@ -7,12 +7,16 @@ using System.Threading.Tasks;
namespace Akari.Prototype.Server.Services
{
public interface IApplicationsManager
public interface IApplicationsManager : IEnumerable<Application>
{
bool TryCreate(string applicationName, out string token);
bool TryCreate(string applicationName, out string applicationToken);
bool AddFingerprint(string applicationName, string applicationToken, string fingerprintName, string masterPassword);
bool Contains(string applicationName);
bool TryRetrieveKey(string applicationName, string token, out AesGcm key);
bool Remove(string applicationName);
bool AddFingerprint(string applicationName, string fingerprintName);
bool TryRetrieveKey(string applicationName, string applicationToken, out AesGcm key);
}
}