West Point, UNITED STATES: US Army cadets make their way through campus 30 March 2007 at the United States Military Academy in West Point, NY. AFP PHOTO/DON EMMERT (Photo DON EMMERT/AFP/Getty Images) File photo: United States Military Academy in West Point, NY. (Photo: DON EMMERT/AFP/Getty Images)

WHITE PLAINS, N.Y. (CBSNewYork/AP) — A West Point cadet was convicted Tuesday of possessing a collection of child pornography and sharing it over the Internet.

A federal court jury in White Plains found 25-year-old Ricky Patrick Hester guilty of possessing and distributing pornographic photos and videos.

Hester, of Granger, Indiana, faces a mandatory minimum of five years in prison on the distribution conviction.

He has been on leave at the U.S. Military Academy since his arrest in 2013. He was one semester short of graduation.

The academy said then that the allegations against Hester were “inconsistent with the values of the U.S. Military Academy and the Army.”

The government said emails expressing interest in child pornography had been traced to Hester from Idaho. Hester was arrested at his barracks by Homeland Security agents.

When agents questioned Hester, he “confessed in full,” prosecutor Lauren Schorr said in the trial’s opening statements.

But Hester’s lawyer, Patrick Mullin, responded that the agents’ questioning and their search of his room were improper. He suggested that investigators settled on Hester as their suspect too soon, noting that another cadet used the same room and many cadets had access to a West Point wireless network.

Mullin refused to comment after the verdict.

Schorr said Hester used his cellphone and a Dropbox account to collect “hundreds of shocking portrayals of children” and then engaged in trading over the Internet. She told jurors he had transmitted an email message saying he was interested in images of “boys tied up and being forced to do things.”

(TM and © Copyright 2015 CBS Radio Inc. and its relevant subsidiaries. CBS RADIO and EYE Logo TM and Copyright 2015 CBS Broadcasting Inc. Used under license. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed. The Associated Press contributed to this report.)