TEHRAN - The son of Iran’s former president Akbar Hashemi Rafsanjani has been sentenced to 15 years in jail after being tried for security offences and financial crimes, state media said Sunday.

Mehdi Hashemi was accused of involvement in massive protests that followed Iran’s disputed presidential election in 2009, and after being threatened with arrest he left for Britain. The now 45-year-old was arrested after returning to Tehran in September 2012, and although initially bailed three months later he was rearrested and put on trial.

His conviction relates to national security matters as well as fraud and embezzlement, judiciary spokesman Gholamhossein Mohseni-Ejeie was quoted as saying on its official website and in state media. Hashemi has 20 days to appeal his conviction, the reports said.

The 15-year jail term, if confirmed by a secondary court, would be one of the heaviest ever handed down to a family member of such a high-ranking official.

Hashemi supported the so-called Green Movement led by the defeated reformist candidates Mir-Hossein Mousavi and Mehdi Karroubi after the presidential election which was officially won by Mahmoud Ahmadinejad. The former president’s son, most commonly described as a businessman, actively supported Mousavi, dismissing Ahmadinejad’s win as fraudulent.

Mousavi, along with his wife Zahra Rahnavard, and Karroubi were placed under house arrest in 2011 after repeatedly challenging the official election results, which gave Ahmadinejad a second term as president.

Meanwhile, Iran has launched a smartphone app for all the speeches made by its supreme leader Ayatollah Ali Khamenei over the past quarter of a century, his website announced Sunday.

Khamenei.ir is available for mobile devices powered by Android or Apple’s operating system, initially only in Farsi, the website said.

Browsers will be able to access speeches made by Khamenei, Iran’s supreme leader since 1989, as well as his messages and pictures.

The speeches have been classified by year and users can type in key words to find specific content.

Iran has 40 million Internet users, including government leaders using the web for official communications, from a population of almost 78 million.

But authorities frequently block access to popular websites including Facebook, Twitter and YouTube to stop Iranians from surfing content seen as immoral or undermining the Islamic regime.

In 2011, Iran set up a special police unit to combat cyber-crime, particularly on social networking sites popular with the opposition and dissidents.