Add IMasterKeyService
This commit is contained in:
21
Akari.Prototype.Server/Services/IMasterKeyService.cs
Normal file
21
Akari.Prototype.Server/Services/IMasterKeyService.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Security.Cryptography;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Akari.Prototype.Server.Services
|
||||
{
|
||||
public interface IMasterKeyService
|
||||
{
|
||||
public bool IsLoggedIn { get; }
|
||||
|
||||
public bool CheckConfig();
|
||||
|
||||
public bool Login(string password);
|
||||
|
||||
public bool TryGetKey(out AesGcm key);
|
||||
|
||||
public bool CreatePassword(string password);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user