public void CheckPermissionsToken(IDateTimeProvider dateTimeProvider, string token) { if (PermissionsToken == null) { throw new BadRequestException("Token Expiration not found"); } PermissionsToken.CheckValidity(dateTimeProvider, token); }
public void SetPermissionsToken(IDateTimeProvider dateTimeProvider, string token, DateTime date) { PermissionsToken = new PermissionsToken(dateTimeProvider, token, date); this.Update(); }