Skip to content

Instantly share code, notes, and snippets.

@MaartenSmeets
Created October 27, 2018 10:21
Show Gist options
  • 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