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.

READ MORE: 2-Year-Old Shot In Newark

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.

READ MORE: Teen Shot In The Hand On Upper East Side Monday Morning

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.”

MORE NEWS: Met Gala Making Its Comeback In September

(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.)