类 SaTempForJwt

java.lang.Object
cn.dev33.satoken.temp.jwt.SaTempForJwt
所有已实现的接口:
cn.dev33.satoken.temp.SaTempInterface

public class SaTempForJwt extends Object implements cn.dev33.satoken.temp.SaTempInterface
Sa-Token 临时令牌验证模块接口 JWT实现类,提供以 JWT 为逻辑内核的临时 token 验证功能
从以下版本开始:
1.20.0
作者:
click33
  • 构造器详细资料

    • SaTempForJwt

      public SaTempForJwt()
  • 方法详细资料

    • createToken

      public String createToken(String service, Object value, long timeout)
      根据value创建一个token
      指定者:
      createToken 在接口中 cn.dev33.satoken.temp.SaTempInterface
    • parseToken

      public Object parseToken(String service, String token)
      解析token获取value
      指定者:
      parseToken 在接口中 cn.dev33.satoken.temp.SaTempInterface
    • getTimeout

      public long getTimeout(String service, String token)
      返回指定token的剩余有效期,单位:秒
      指定者:
      getTimeout 在接口中 cn.dev33.satoken.temp.SaTempInterface
    • deleteToken

      public void deleteToken(String service, String token)
      删除一个token
      指定者:
      deleteToken 在接口中 cn.dev33.satoken.temp.SaTempInterface
    • getJwtSecretKey

      public String getJwtSecretKey()
      获取jwt秘钥
      指定者:
      getJwtSecretKey 在接口中 cn.dev33.satoken.temp.SaTempInterface
      返回:
      jwt秘钥