code: private void checkRSACompatible() {
          if (!JsonWebKeyType.RSA.equals(kty) && !JsonWebKeyType.RSA_HSM.equals(kty)) {
              throw new UnsupportedOperationException("Not an RSA key");
          }
      }
docs: Verifies if the key is an RSA key.