package com.vci.starter.web.constant;
|
|
/**
|
* token的相关key
|
* @author weidy
|
* @date 2019/11/7 10:10 AM
|
*/
|
public class TokenKeyConstant {
|
|
/**
|
* 用户的token传输时使用的名称
|
*/
|
public static final String USER_TOKEN_KEY ="AuthorizationToken";
|
|
/**
|
* 系统的token传输时使用的名称
|
*/
|
public static final String SYSTEM_PRIVATE_KEY = "AuthorizationSystemToken";
|
|
/**
|
* 系统的日志链路主键传输时使用的名称
|
*/
|
public static final String LOG_TRACE_ID_KEY = "AuthorizationLogTraceId";
|
|
/**
|
* 日志的追踪主键的名称
|
*/
|
public static final String TRACE_ID = "logTraceId";
|
|
/**
|
* 系统的多语参数名称
|
*/
|
public static final String LANGUAGE_KEY = "vciLanguageCode";
|
|
/**
|
* 请求的时间参数
|
*/
|
public static final String REQUEST_TIMESTAMP = "vciHttpStartRequestTime";
|
|
/**
|
* 用户许可在redis里的前缀
|
*/
|
public static final String TOKEN_KEY_PREFIX_IN_REDIS = "jwt-token:";
|
|
/**
|
* 令牌秘钥
|
*/
|
public static final String SECRET = "thisissecretforjwt";
|
|
/**
|
* JWT中的用户主键的Key
|
*/
|
public static final String JWT_USER_KEY = "user_key";
|
|
/**
|
* JWT中token的key
|
*/
|
public static final String JWT_TOKEN_KEY = "token_key";
|
|
/**
|
* JWT中用户账号的key
|
*/
|
public static final String JWT_USER_CODE_KEY = "user_code_key";
|
|
/**
|
* JWT中用户名字key
|
*/
|
public static final String JWT_USER_NAME_KEY = "user_name_key";
|
|
/**
|
* 缓存有效期,默认30(分钟)
|
*/
|
public static final long EXPIRATION = 30;
|
}
|