Hamid Nehal Ansari, a Mumbai resident, was convicted on Sunday in Kohat, a city in the Khyber Pakhtunkhwa province of Pakistan, and was shifted to Peshawar Central Prison, a jail spokesman said.
He has a right to appeal under the Pakistan Army Act. India had sought consular access for Ansari, an engineer, and asked Pakistan to ensure his safety and security.
According to the Dawn, Ansari has confessed to illegally entering Pakistan from Afghanistan for espionage. He had seven Facebook accounts as well as around 30 email addresses. He was reportedly found to be in possession of sensitive documents, it claimed.
Over three years after Ansari went missing in Pakistan where he had allegedly gone to meet a girl he had befriended on the internet, authorities last month admitted that he has been in army custody and facing a trial in military courts.
In light of the information, a two-member bench had on January 13 disposed of a habeas corpus petition filed by the convict's mother, Fauzia Ansari, against his alleged illegal detention.
The court had asked the government to respond to the petition by Fauzia on the whereabouts of her son. In response, the military intelligence directorate intimated that Ansari was in military custody and is being tried by a military court.
Ansari was taken into custody by police and intelligence bureau officials in Kohat, about 70 kms from here, in November 2012. Ever since, his whereabouts were unknown.
Ansari's mother claimed he was in touch with some Pakistani friends who had suggested him to cross into Pakistan from Afghanistan without a visa. She claimed that he had befriended a Pakistani woman through social media and had gone to Pakistan to meet her.
Gold sweep by boxers, shooters, kabbadi team at South Asian Games
Finally, Pak approves Hindu Marriage Bill
Pak sealed 182 madrassas since Peshawar school attack
SAG: Mary Kom leads charge as India eye perfect 10 in boxing
Terror wary Pakistan shuts 230 educational institutions