implementation 'com.auth0:java-jwt:4.5.0' Create a JWT Use JWT.create(), configure the claims, and then call sign(algorithm) to sign the JWT. The example below demonstrates this using the RS256 signing algorithm: try { Algorithm algorithm = Algorithm.RSA256(rsaPublicKey, rsaPrivateKey); ...
@ralphgabrielleassuming the latest stable JJWT version, which is 0.10.7 at the time of writing, you can do: public class App { // Note that 'HelloWorld' is not a valid JWT signing key per the JWA RFC's // key strength requirements. For why, read this for more information: // https...