Former Republican House Speaker Dennis Hastert will plead guilty to charges stemming from paying $3.5 million in hush money to someone trying to blackmail him for reportedly molesting a male minor.

On Thursday, Hastert's attorney said the retired politician will accept a plea deal, which will avert a trial and keep Hastert's 'prior misconduct' out of the public eye.

Sources told Politico that the deal will include more than a year in prison for Hastert.

Scroll down for video

Former House Speaker Dennis Hastert's lawyer said Hastert has agreed to a plea deal stemming from paying $3.5 million in hush money to someone trying to blackmail him over gay sex abuse

During his time in Washington, Dennis Hastert was one of the top Republicans in town, serving as House Speaker from 1999 to 2007. Here he poses with then President Bush in 2006

Hastert was indicted in May and court documents revealed that in 2010 he agreed to pay the millions to an 'Individual A' to 'compensate for and conceal his prior misconduct' against the unnamed individual.

Hastert went around federal banking laws to make hush money payments and then lied to the FBI when he was questioned about it.

'Yeah…I kept the cash. That’s what I’m doing,' Hastert allegedly said, according to Vox.

The indictment did not identify 'Individual A' but for saying the person 'has known Hastert for most of Individual A's life' and is a resident of Hastert's hometown of Yorkville, Illinois.

It suggested that the charges stem from the time Hastert was a high school teacher and wrestling coach, before he was elected to the House of Representatives.

While the exact 'misconduct' isn't specified in legal documents, the sister of the late Steve Reinboldt came forward and said her brother, a student equipment manager for Hastert's wrestling team in the early 70s, was molested by Hastert, the coach.

The Associated Press and other outlets reported that 'Individual A's' allegations are along the same lines, suggesting that the $3.5 million went toward concealing past sexual misconduct.

ABC News, who interviewed Reinboldt's sister Jolene, reported that 'Individual A' was also a male and in high school during the time of the sex abuse.

Former House Speaker Dennis Hastert (top left) plans to plead guilty of charges stemming from his high school wrestling coach days. Here he is in a 1975 yearbook photo