CacheConstants.java 831 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. package com.boman.domain.constant;
  2. /**
  3. * 缓存的key 常量
  4. *
  5. * @author ruoyi
  6. */
  7. public class CacheConstants
  8. {
  9. /**
  10. * 令牌自定义标识
  11. */
  12. public static final String HEADER = "Authorization";
  13. /**
  14. * 令牌前缀
  15. */
  16. public static final String TOKEN_PREFIX = "Bearer ";
  17. /**
  18. * 权限缓存前缀
  19. */
  20. public final static String LOGIN_TOKEN_KEY = "login_tokens:";
  21. /**
  22. * 权限缓存前缀
  23. */
  24. public final static String TOKEN = "token";
  25. /**
  26. * 用户ID字段
  27. */
  28. public static final String DETAILS_USER_ID = "user_id";
  29. /**
  30. * 用户名字段
  31. */
  32. public static final String DETAILS_USERNAME = "username";
  33. /**
  34. * 授权信息字段
  35. */
  36. public static final String AUTHORIZATION_HEADER = "authorization";
  37. }