using System;
using System.Collections.Generic;
using System.Text;
namespace key4intranet.authentication.Providers
{
public interface ITokenProvider
{
///
/// Create a token with list of private claim
///
/// claims
/// encrypt token
string CreateToken(IDictionary claims);
///
/// Create a token with list claims, there be public or private
///
/// Private claims
/// Public claims
/// Encrypt token
string CreateToken(IDictionary privateClaims, IDictionary publicClaims);
///
/// Get claims from token
///
/// token
/// List of claims
IDictionary ReadClaims(string token);
///
/// Is token valide
///
/// token
/// true is token is valid
Boolean ValidateToken(string token);
}
}