Brooklyn state Senate candidate Julia Salazar was trying to make a quick exit out of City Hall on Thursday.

Hours earlier, a bombshell report landed: The Daily Mail reported that Salazar was accused years earlier of having an affair with former Mets star Keith Hernandez, who is currently a color commentator for Mets games on SNY.

NY1: Did you have an affair?

Salazar: I absolutely did not, and that is what I just said. I absolutely did not.

It all was unveiled in court papers filed five years ago in Florida. Salazar had been suing the baseball star's ex-wife for slander. In the suit, Salazar was accused of having the affair, which court papers said was not true. Hernandez also denied it. Salazar, who had known Hernandez since her childhood, was a 19-year-old student at Columbia University at the time.

But it didn't end there. The two were reportedly neighbors in Florida.

In 2010, according to police records, Kai Hernandez, the ex-wife of the baseball star, had gone to the police, accused Salazar of impersonating her and calling her bank to try to access the account. Those tapes leaked on Thursday to Tablet Magazine.

According to the police report, Kai Hernandez received a phone call on Dec. 14, 2010, from her financial adviser at UBS informing her that a caller to them had repeatedly tried to access Hernandez's account. The caller claimed to be Hernandez and said she had been unable to log in to her account because of the security questions.

Hernandez listened to the recordings and identified Salazar as the caller. "Julia identified herself as me and rattled off my personal information without any hesitation,'' Hernandez said in her sworn statement to the police.

Salazar was arrested several months later when she was back in Florida on a break from Columbia. The case was never prosecuted. It was dismissed. Salazar also won a $20,000 settlement in her slander case. The magazine Tablet first reported the details of Salazar's arrest.

NY1: Why did you sue?

Salazar: Because false accusations were made against me.

The now-retired detective who arrested Salazar, Charles Weinblatt, told Tablet that he believed the voice on the recordings was Salazar's. He said the charges were likely dropped because a voice ID was not deemed sufficient to prosecute.

But Adam Hecht, Salazar's attorney, said a forensic analysis of the recordings showed the person who made the calls was actually Kai Hernandez herself.

Salazar charged in her 2013 lawsuit that Hernandez "orchestrated a scheme'' to frame Salazar and said Hernandez had told police falsely that Salazar was having an affair with Keith Hernandez.

The lawsuit said Salazar was "humiliated'' by being handcuffed and fingerprinted and having to pose for mug shots.

Salazar's campaign was not eager Thursday to discuss the alleged affair; NY1 had to chase after her when she left City Hall to get comment.

For weeks, Salazar has been under fire for misrepresenting her background. Early in the campaign, she said she was an immigrant and the product of a struggling single mom.

"I immigrated to this country with my family and I was very little, from Colombia," Salazar said in a campaign video on Twitter.

In fact, she was born in the United States, and family members have told reporters they were middle class.

That wasn't something she wanted to discuss on Thursday, either.

Salazar: I don't think it's a valuable use of my time, when I need to be talking to voters and constituents about what really matters in this election.

NY1: Do you think you lied about your record?

Salazar: No.

Salazar is challenging state Sen. Martin Dilan of Brooklyn in next week's Democratic primary.

When reached for comment, Dilan's team said he is focusing on his record and he will let his opponent speak for hers.