MAYS LANDING — An Atlantic City man was sentenced on Monday to 30 years in prison for illegally selling an assault rifle, among other weapons offenses, last year.

On Jan. 31 of this year, David J. Albright, 43, was found guilty of selling an AK-47 rifle to a police confidential informant. The exchange took place in Atlantic City, in August 2011.

Albright also displayed a handgun during the sale, authorities said. After the exchange, Atlantic City police detectives took the rifle as evidence.

At his trial, the jury convicted Albright on five counts — unlawful possession of an assault firearm, unlawful possession of a handgun, unlawful sale of an assault weapon and two counts of unlawful possession of a firearm by a convicted felon.

He had been released on bail before his conviction, but was again jailed.

Chief Assistant Atlantic County Prosecutor Cary Shill asked for a persistent offender sentence for Albright, whose criminal record includes 11 convictions prior to that in January.