类 SaTempForJwt
java.lang.Object
cn.dev33.satoken.temp.jwt.SaTempForJwt
- 所有已实现的接口:
cn.dev33.satoken.temp.SaTempInterface
Sa-Token 临时令牌验证模块接口 JWT实现类
- 作者:
- kong
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明createToken(String service, Object value, long timeout) 根据value创建一个tokenvoiddeleteToken(String service, String token) 删除一个token获取jwt秘钥longgetTimeout(String service, String token) 返回指定token的剩余有效期,单位:秒parseToken(String service, String token) 解析token获取value从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 cn.dev33.satoken.temp.SaTempInterface
createToken, deleteToken, getTimeout, parseToken, parseToken, parseToken, splicingKeyTempToken
-
构造器详细资料
-
SaTempForJwt
public SaTempForJwt()
-
-
方法详细资料
-
createToken
根据value创建一个token- 指定者:
createToken在接口中cn.dev33.satoken.temp.SaTempInterface
-
parseToken
解析token获取value- 指定者:
parseToken在接口中cn.dev33.satoken.temp.SaTempInterface
-
getTimeout
返回指定token的剩余有效期,单位:秒- 指定者:
getTimeout在接口中cn.dev33.satoken.temp.SaTempInterface
-
deleteToken
删除一个token- 指定者:
deleteToken在接口中cn.dev33.satoken.temp.SaTempInterface
-
getJwtSecretKey
获取jwt秘钥- 指定者:
getJwtSecretKey在接口中cn.dev33.satoken.temp.SaTempInterface- 返回:
- jwt秘钥
-