dangsn
2024-06-07 7664ba49025a6c549885fc6019e4d3c1886f45a6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
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;
}