private void ValidateToken()
{
if (this.Expiration.HasValue && this.Expiration.Value < DateTime.UtcNow)
{
throw new InvalidOperationException("Expiration must be set to a date/time in the future");
}
if (string.IsNullOrWhiteSpace(this.Issuer))
{
throw new InvalidOperationException("Issuer must be set");
}
if (string.IsNullOrWhiteSpace(this.Audience))
{
throw new InvalidOperationException("Audience must be set");
}
}