Gilbert Flores/Variety via Getty Images

A federal judge might force Jay-Z to take a DNA test to prove Rymir Satterthwaite’s claim that he is the rap mogul’s illegitimate son.

On Thursday, Judge Analisa Torres sided with an Alabama woman who accused Jay-Z and Sean Combs of assaulting her when she was 13 back in 2000.

The judge rebuked Jay-Z and his lawyer, Alex Spiro, for “wasting court resources” and filing “a litany of letters and motions” to dismiss the lawsuit against the rapper.

In a five-page filing on Thursday, Judge Torres chastised Spiro’s aggressive legal filings, describing them as “combative” and filled with “inflammatory language and ad hominem attacks.”

Jay-Z faces the public spectacle of a career-ending trial if he doesn’t settle out of court with his accuser before then.

Judge Torres also allowed “Jane Doe” to proceed with her lawsuit anonymously on Thursday. Now legal experts say the judge could force Jay-Z to give a DNA sample to prove he didn’t father a child with a 16-year-old girl.

Jay-Z, Rymir Satterthwaite

Rymir Satterthwaite believes he might be Jay-Z’s illegitimate son and that his mom was underage when she gave birth to him. Rymir says his mom was only 16 when she slept with Jay-Z. The age of consent is 17 in New York. A 16-year-old girl can’t consent to sex with an adult in the state.

Jay-Z has been accused of avoiding the DNA test because it would confirm longstanding rumors that he had a preference for virginal teenagers.

If Jay-Z fathered a child with a minor, a jury is more likely to believe he would defile an underage girl.

A trial could open the door to dozens of lawsuits filed by women who say they lost their virginity to Jay-Z when they were underage.