Andrew McCabe, the onetime FBI deputy director long scorned by President Donald Trump and just fired by the attorney general, kept personal memos describing interactions with the president that are similar to the notes compiled by dismissed FBI chief James Comey, The Associated Press has learned.

It was not immediately clear whether any of McCabe’s memos have been turned over to special counsel Robert Mueller, whose criminal investigation is examining Trump campaign ties to Russia and possible obstruction of justice, or been requested by Mueller.

McCabe’s memos include details of interactions with the president, among other topics, according to a person with direct knowledge of the situation who wasn’t authorized to discuss the notes publicly and spoke on condition of anonymity.

Though the precise contents are unknown, the memos possibly could help substantiate McCabe’s assertion that he was unfairly maligned by a White House he says had declared “war” on the FBI and Mueller’s investigation. They almost certainly contain, as Comey’s memos did, previously undisclosed details about encounters between the Trump administration and FBI.

The disclosure Saturday came hours after Trump called McCabe’s firing by Attorney General Jeff Sessions “a great day for Democracy” and asserted without elaboration that McCabe knew “all about the lies and corruption going on at the highest levels off the FBI!”

That sent former CIA Director John Brennan, an outspoken Trump critic, into a Twitter tizzy:

“When the full extent of your venality, moral turpitude, and political corruption becomes known, you will take your rightful place as a disgraced demagogue in the dustbin of history. You may scapegoat Andy McCabe, but you will not destroy America...America will triumph over you.”

Sessions said he acted on the recommendation of FBI disciplinary officials who said McCabe had not been candid with a watchdog office investigation. McCabe was fired two days before his retirement date.

An upcoming inspector general’s report is expected to conclude that McCabe had authorized the release of information to the media and was not forthcoming with the watchdog office as it examined the bureau’s handling of the Hillary Clinton email investigation. McCabe denied the allegations and said his credibility had been attacked as “part of a larger effort not just to slander me personally” but also the FBI and law enforcement.

“It is part of this administration’s ongoing war on the FBI and the efforts of the special counsel investigation, which continue to this day,” he added. “Their persistence in this campaign only highlights the importance of the special counsel’s work.”

The firing set off dueling tweets between Trump, who called the termination a “great day for the hard working men and women of the FBI,” and Comey, the director he fired 10 months ago.

Trump called Comey “sanctimonious” and said Comey made McCabe “look like a choirboy.” Comey, whose highly anticipated book comes out next month, responded with his own tweet: “Mr. President, the American people will hear my story very soon. And they can judge for themselves who is honorable and who is not.”

Also Saturday, Trump’s personal lawyer, John Dowd, cited the “brilliant and courageous example” by Sessions and the FBI’s Office of Professional Responsibility and said Deputy Attorney General Rod Rosenstein, should “bring an end” to the Russia investigation “manufactured” by Comey.

Dowd told the AP that he neither was calling on Rosenstein, who oversees Mueller’s inquiry, to fire the special counsel immediately nor had discussed with Rosenstein the idea of dismissing Mueller or ending the probe.

Mueller is investigating whether Trump’s actions, including Comey’s ouster, constitute obstruction of justice. McCabe could be an important witness, and his memos could be used by investigators as they look into whether Trump sought to thwart the FBI probe. Comey’s own memos have been turned over to Mueller and are part of his investigation.

McCabe, in a statement defending himself, asserted he was singled out by the administration because of the “role I played, the actions I took, and the events I witnessed in the aftermath” of Comey’s firing last May.

McCabe became acting director after that and assumed direct oversight of the FBI’s investigation into the Trump campaign. He said the release of the findings against him was accelerated after he told congressional officials that he could corroborate Comey’s accounts of Comey’s conversations with the president.

McCabe had been on leave from the FBI since January, when he abruptly left the deputy director position. He had planned to retire on Sunday, and the dismissal probably jeopardizes his ability to collect his full pension benefits. His removal could add to the turmoil that has enveloped the FBI since Comey’s firing and as the bureau moves ahead with an investigation the White House has dismissed as a hoax.

McCabe spent more than 20 years as a career FBI official and played key roles in some of the most recent significant investigations. But Trump repeatedly condemned him over the past year as emblematic of an FBI leadership he contends is biased against his administration.

The firing arises from an inspector general review into how the FBI handled the Clinton email investigation. That inquiry focused not only on specific decisions made by FBI leadership but also on news media leaks.

McCabe came under scrutiny over an October 2016 news report that revealed differing approaches within the FBI and Justice Department over how aggressively the Clinton Foundation should be investigated. The watchdog office has concluded that McCabe authorized FBI officials to speak to a Wall Street Journal reporter for that story and that McCabe had not been forthcoming with investigators. McCabe denies it.

McCabe became entangled in presidential politics in 2016 when it was revealed that his wife, during her unsuccessful run for state Senate in Virginia, received campaign contributions from the political action committee of then-Gov. Terry McAuliffe, D-Va., a longtime Clinton friend. The FBI has said McCabe received the necessary ethics approval about his wife’s candidacy and was not supervising the Clinton investigation at the time.

___

Follow Eric Tucker on Twitter at http://www.twitter.com/etuckerAP