Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. public void hasBasicPermissions(String jwt, String userAccessId) {
  2. try {
  3.  
  4. Jwts.parser()
  5. .requireIssuer("Me")
  6. .requireSubject(userAccessId)
  7. .setSigningKey(secretKey)
  8. .parseClaimsJws(jwt);
  9.  
  10. } catch (Exception e) {
  11. throw new ApiException("token is invalid");
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement