Sign JWTs with Jwts.SIG algorithms
ProprietaryReplaces JwtBuilder#signWith(Key, SignatureAlgorithm), deprecated since JJWT 0.12, with signWith(key, Jwts.SIG.*). The key is only changed when it is declared with the type the algorithm requires (SecretKey for HMAC, PrivateKey for RSA and EC algorithms); others, and algorithms that aren't constants, are marked with a warning for a manual migration.
org. openrewrite. java. security. jjwt. MigrateSignWithmod run . --recipe= org. openrewrite. java. security. jjwt. MigrateSignWithInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.