Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Generate and sign the token
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