Created
October 27, 2018 10:21
-
-
Save MaartenSmeets/bc204e98208dee1d8e1d58e443c36e0f to your computer and use it in GitHub Desktop.
Generate and sign the token
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
SignedJWT signedJWT = new SignedJWT(new JWSHeader.Builder(JWSAlgorithm.RS256).keyID(rsaJWK.getKeyID()).build(), claimsSet); | |
signedJWT.sign(signer); | |
String token = signedJWT.serialize(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment