package com.app.constant;

public class JwtConstant {

    /* 请求头相关 */
    public static final String HEADER_NAME = "Authorization"; // 存放Token的Header Key
    public static final String PREFIX_HEADER_NAME = "Bearer "; // Token前缀
    public static final String TEST_TOKEN_VALUE = "swagger-ui"; // token白名单

    /* Token本身参数 */
    public static final String SALT = "toceansoft"; // 盐值

    public static final String ISSUER = "tocean";
    public static final String SUBJECT = "tocean";

    public static final String SECRET_KEY = "auth_chm"; // Secret密钥

    public static final String EXP = "exp";
    public static final String PAYLOAD = "payload";

    public static final long TOKEN_EXPIRE_TIME = 2 * 60 * 60; // token过期时间(秒)
    public static final long REFRESH_TOKEN_EXPIRE_TIME = 30 * 60; // refreshToken过期时间(秒)

}
