Generate JWT keys with Keys
ProprietaryReplaces the key generators of the jjwt jar up to 0.9, MacProvider, RsaProvider and EllipticCurveProvider, which JJWT 0.10 moved to the runtime-only jjwt-impl jar, with Keys.secretKeyFor(SignatureAlgorithm) and Keys.keyPairFor(SignatureAlgorithm), using the same default algorithms (HS512, 4096 bit RSA keys and ES512). Calls passing a SecureRandom, which Keys doesn't take, and RSA key sizes other than 2048, 3072 and 4096 bits, are marked with a warning for a manual migration.
org. openrewrite. java. security. jjwt. ReplaceJjwtKeyProvidersmod run . --recipe= org. openrewrite. java. security. jjwt. ReplaceJjwtKeyProvidersInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.