Created
October 27, 2018 10:21
-
-
Save MaartenSmeets/5ac350e8455df31d2281356f158b1ef6 to your computer and use it in GitHub Desktop.
Build a claimset
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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