Skip to content

Instantly share code, notes, and snippets.

@bhawna94
Last active March 5, 2019 12:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bhawna94/abefa043e45eeaa09c16b8cd7490e6cb to your computer and use it in GitHub Desktop.
Save bhawna94/abefa043e45eeaa09c16b8cd7490e6cb to your computer and use it in GitHub Desktop.
Jwts.builder()
.setSubject("")
.signWith(HS512, new SecretKeySpec(parseBase64Binary("Bhawna"), HS512.getJcaName()))
.setIssuedAt(new Date())
.setExpiration(addSeconds(new Date(), 80))
.compact();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment