| | |
| | | */ |
| | | 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; |
| | | } |