SHARE
TWEET

Untitled

a guest Jun 19th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top