using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace HuanMeng.DotNetCore.JwtInfrastructure
{
    /// <summary>
    /// JwtToken 配置文件
    /// </summary>
    public class JwtTokenConfig
    {

        /// <summary>
        /// 加密值
        /// </summary>
        [JsonPropertyName("secret")]
        public string Secret { get; set; } = string.Empty;

        /// <summary>
        /// 颁发者
        /// </summary>
        [JsonPropertyName("issuer")]
        public string Issuer { get; set; } = string.Empty;

        /// <summary>
        /// 受众
        /// </summary>
        [JsonPropertyName("audience")]
        public string Audience { get; set; } = string.Empty;

        /// <summary>
        /// 令牌过期时间
        /// </summary>
        [JsonPropertyName("accessTokenExpiration")]
        public int AccessTokenExpiration { get; set; }

        /// <summary>
        /// 刷新令牌过期时间（一般会比令牌过期时间长）
        /// </summary>
        [JsonPropertyName("refreshTokenExpiration")]
        public int RefreshTokenExpiration { get; set; }

    }
}
