We must change the Algorithm type on the impl IntoJsonWebKey for RsaPrivateKey to be JsonWebAlgorithm, so it is possible to specify encryption algorithms.
This must also be done on all other key types that will, at some point in future, support encryption & signing.
In addition to changing the Algorithm type, in the method we must check if the algorithm is compatible with the key type.