Cipher cipher = Cipher.getInstance("RSA");
// Unwrap 'key' with the RSA key into a Key object
cipher.init(Cipher.UNWRAP_MODE, rsaPubKey);
byte[] keyBytes = base64.decode(key);
Key aesKey = cipher.unwrap(keyBytes, "AES", Cipher.SECRET_KEY);
// Decrypt 'iv' with the RSA key into a IvParameterSpec object
byte[] ivBytes = base64.decode(iv);
cipher.init(Cipher.DECRYPT_MODE, rsaPubKey);
byte[] ivDecrypted = cipher.doFinal(ivBytes);