You've already forked FrameTour-BE
1
This commit is contained in:
@ -48,19 +48,7 @@ public class JwtAnalysisUtil {
|
||||
* @throws Exception
|
||||
*/
|
||||
public static JwtInfo getInfoFromToken(String token, byte[] pubKey) throws Exception {
|
||||
Claims body = (Claims) RsaKeyUtil.parserToken(token, pubKey).getBody();
|
||||
for (Map.Entry<String, Object> stringObjectEntry : body.entrySet()) {
|
||||
Map.Entry<String, Object> entry = stringObjectEntry;
|
||||
if (!"sub".equals(entry.getKey())
|
||||
&& !"userId".equals(entry.getKey())
|
||||
&& !"phone".equals(entry.getKey())
|
||||
&& !"roleId".equals(entry.getKey())
|
||||
&& !"account".equals(entry.getKey())
|
||||
&& !"name".equals(entry.getKey())
|
||||
&& !"roleName".equals(entry.getKey())
|
||||
&& !"scenicId".equals(entry.getKey())
|
||||
&& !"expire".equals(entry.getKey())) ;
|
||||
}
|
||||
Claims body = RsaKeyUtil.parserToken(token, pubKey).getBody();
|
||||
|
||||
// convert
|
||||
LocalDateTime expireTime = null;
|
||||
|
Reference in New Issue
Block a user