Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@MaartenSmeets
Created October 27, 2018 10:21
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 MaartenSmeets/5ac350e8455df31d2281356f158b1ef6 to your computer and use it in GitHub Desktop.
Save MaartenSmeets/5ac350e8455df31d2281356f158b1ef6 to your computer and use it in GitHub Desktop.
Build a claimset
JWTClaimsSet claimsSet = new JWTClaimsSet.Builder()
.subject(user)
.issuer(prop.getProperty("tokenissuer"))
.expirationTime(expires)
.issueTime(new Date(new Date().getTime()))
.build();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment