| 程序包 | 说明 |
|---|---|
| xyz.sanshan.auth.security.common.util.jwt |
| 限定符和类型 | 类和说明 |
|---|---|
class |
JWTInfo |
| 限定符和类型 | 方法和说明 |
|---|---|
static IJWTInfo |
JWTHelper.getInfoFromToken(String token,
byte[] pubKey)
获取token中的用户信息
|
static IJWTInfo |
JWTHelper.getInfoFromToken(String token,
String pubKeyPath)
获取token中的用户信息
|
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
JWTHelper.generateToken(IJWTInfo jwtInfo,
byte[] priKey,
int expire)
密钥加密token
|
static String |
JWTHelper.generateToken(IJWTInfo jwtInfo,
String priKeyPath,
int expire)
密钥加密token
|
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.