Generate JWT keys with Jwts.SIG algorithms

Proprietary

Replaces Keys.secretKeyFor(SignatureAlgorithm) and Keys.keyPairFor(SignatureAlgorithm), deprecated since JJWT 0.12, with Jwts.SIG.*.key().build() and Jwts.SIG.*.keyPair().build(). Algorithms that aren't constants are marked with a warning for a manual migration.

org.openrewrite.java.security.jjwt.MigrateKeyGeneration
mod run . --recipe=org.openrewrite.java.security.jjwt.MigrateKeyGeneration

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.