Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void hasBasicPermissions(String jwt, String userAccessId) {
- try {
- Jwts.parser()
- .requireIssuer("Me")
- .requireSubject(userAccessId)
- .setSigningKey(secretKey)
- .parseClaimsJws(jwt);
- } catch (Exception e) {
- throw new ApiException("token is invalid");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement