using SharedLibraryCore.Helpers;
namespace SharedLibraryCore.Interfaces
{
public interface ITokenAuthentication
{
///
/// generates and returns a token for the given network id
///
/// auth information for next token generation
/// 4 character string token
TokenState GenerateNextToken(ITokenIdentifier authInfo);
///
/// authorizes given token
///
/// auth information
/// true if token authorized successfully, false otherwise
bool AuthorizeToken(ITokenIdentifier authInfo);
}
}