Package icu.easyj.jwt.impls
Class JJwt
java.lang.Object
icu.easyj.jwt.impls.JJwt
- All Implemented Interfaces:
IJwt,IJwtBuilder,IJwtParser
基于jjwt实现的JWT生成器
- Author:
- wangliang181230
-
Constructor Details
-
JJwt
-
JJwt
-
JJwt
-
-
Method Details
-
create
Description copied from interface:IJwtBuilder创建JWT- Specified by:
createin interfaceIJwtBuilder- Parameters:
jwtId- JWT的IDclaims- 私有声明issuedAt- 签发时间expiresAt- 过期时间,不能小于等于签发时间,为空时表示永久有效- Returns:
- jwt 返回创建的JWT
-
parse
Description copied from interface:IJwtParser解析JWT- Specified by:
parsein interfaceIJwtParser- Parameters:
jwtStr- JWT串leeway- 容忍空间,单位:秒。当不能晚于当前时间时,向后容忍;不能早于向前容忍。- Returns:
- jwtInfo 返回解析出的JWT信息
-