"Rosenstein began telling associates that he would ultimately be 'vindicated' for his role in the matter" shortly after the FBI director's dismissal, The Times reported.

Rosenstein told then-acting FBI director Andrew McCabe that he thought he might be able to get Attorney General Jeff Sessions and then-Homeland Security Secretary John Kelly to invoke the 25th Amendment, the Times reported. It was not clear how far he pursued the idea.

A spokesperson for the Justice Department provided a statement to The Times from a person who said he or she was present when Rosenstein talked about wearing a wire.

"The person, who would not be named, acknowledge the remark but said Mr. Rosenstein made it sarcastically," The Times reported.

Rosenstein said Friday that the sources that spoke with the Times were “obviously biased against the Department and are advancing their own personal agenda.”

“Let me be clear about this: Based on my personal dealing with the President, there is no basis to invoke the 25th Amendment,” he said.

statement from Rosenstein, obtained by @LauraAJarrett:



“The New York Times’s story is inaccurate and factually incorrect. I will not further comment on a story based on anonymous sources who are obviously biased against the Department and are advancing their own personal agenda" — Dianne Gallagher (@DianneG) September 21, 2018

More from Rosenstein statement:



"But let me be clear about this: based on my personal dealings with the President, there is no basis to invoke the 25th Amendment." — Dianne Gallagher (@DianneG) September 21, 2018

Several unidentified sources confirmed the incidents to the newspaper, saying they had either been briefed about the conversations in person or through memos written by McCabe. The Post also cited McCabe memos that detailed conversations with Rosenstein.

In a statement released Friday, an attorney for McCabe said he drafted memos after having “significant discussions” with high-level officials “so he could have an accurate, contemporaneous record of those discussions.”

What You Need to Know: 25th Amendment

“When he was interviewed by the Special Counsel more than a year ago, he gave all of his memos – classified and unclassified – to the Special Counsel’s office,” the statement said. “A set of those memos remained at the FBI at the time of his departure in late January 2018. He has no knowledge of how any member of the media obtained those memos.”

Andy McCabe’s lawyer on Rosenstein report: pic.twitter.com/ME872e6p1u — Ryan J. Reilly (@ryanjreilly) September 21, 2018

Rosenstein is the top Justice Department official overseeing Special Counsel Robert Mueller’s probe into Russian meddling in the 2016 presidential election and its possible ties to Trump and Trump campaign officials.

Rosenstein took charge of the investigation in March 2017 after Sessions recused himself under pressure over his own contacts with Russian officials.