Implement IKeyManager
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user