类 JwtManager


  • public class JwtManager
    extends Object
    JWT管理类
    • 构造器详细资料

      • JwtManager

        public JwtManager()
    • 方法详细资料

      • setCalendarField

        public JwtManager setCalendarField​(int calendarField)
      • setCalendarInterval

        public JwtManager setCalendarInterval​(int calendarInterval)
      • builder

        public static JwtManager builder()
        创建一个JWT管理类
        返回:
      • verifyToken

        public boolean verifyToken​(String token)
        校验Token
        参数:
        token -
        返回:
        map
      • getObject

        public <T> T getObject​(String token,
                               Class<T> cls)
                        throws Exception
        根据Token获取存进去的对象
        类型参数:
        T -
        参数:
        token -
        cls -
        返回:
        obj
        抛出:
        Exception