Attorney General Jeff Sessions celebrated the four-year prison sentence handed down Thursday for former FBI agent Terry Albury, calling it "a warning to every would-be leaker."

Albury was sentenced in Minnesota after pleading guilty to providing classified information to reporters. He is believed to have sent The Intercept documents that included a guide to informant recruitment and rules for seizing journalist records.

"We are conducting perhaps the most aggressive campaign against leaks in Department history," Sessions said in an afternoon statement.

"Crimes like the one committed by the defendant in this case will not be tolerated — they will be prosecuted to the fullest extent of the law and punished," Sessions said. "Today's sentence should be a warning to every would-be leaker in the federal government that if they disclose classified information, they will pay a high price."

Albury is the second person ordered to prison for leaking during the Trump administration.

Sessions' perceived laxity with leakers enraged President Trump last year. Trump fumed on Twitter that Sessions was taking a “ VERY weak” approach toward disclosures of classified information, leading the attorney general to convene an August 2017 press conference to declare a crackdown on leaks.

It's unclear that the successful prosecution will do much to satisfy Trump, who now openly regrets nominating Sessions, over his recusal from special counsel Robert Mueller's Russia investigation. Trump has not said if Sessions will be fired after the November midterm election.

Although Trump raged against leakers earlier in his presidency, he appeared to express sympathy for Reality Winner, the first leaker to face charges during his administration. After pleading guilty, she was sentenced to more than 5 years in prison in August for leaking classified information on Russian attempts to hack election systems.

Trump tweeted about Winner: "Ex-NSA contractor to spend 63 months in jail over 'classified' information. Gee, this is 'small potatoes' compared to what Hillary Clinton did! So unfair Jeff, Double Standard." Clinton was not prosecuted for mishandling classified information while secretary of state.

Trump did not immediately offer a public comment on Albury.

[Also read: Trump won't say if Jeff Sessions will stay attorney general]

In court, the former FBI agent's legal team unsuccessfully argued there's a double standard for more senior officials such as former CIA Director David Petraeus, who received probation in 2015 for sharing top secret information with his biographer and mistress.

Whistleblower advocates alleged a further double standard in the treatment of Albury relative to the nonprosecution of former FBI Director James Comey and Deputy Director Andrew McCabe.

Albury’s leaks began in February 2016, when the bureau was led by Comey, and continued until August 2017, when McCabe’s three-month stint as acting director ended.

Comey admittedly leaked memos about his conversations with Trump, some of which reportedly contained classified information. McCabe authorized a self-serving 2016 leak to report about an investigation of the Clinton Foundation, before allegedly lying about it to Comey, FBI agents, and the Justice Department's inspector general.

FBI Director Christopher Wray joined Sessions in celebrating the sentencing of Albury, saying, "His sentencing today demonstrates those who violate the law by disclosing classified information will be held responsible for their reckless and illegal actions."

On Tuesday, authorities arrested a fifth alleged criminal leaker during Trump's presidency. Treasury Department employee Natalie Mayflower Sours Edwards is accused of leaking suspicious activity reports to BuzzFeed. Unlike Winner and Albury, she is not charged under the notoriously tough Espionage Act.