In court, the officer, a former Army soldier, addressed Rojas.
"When I brought the fight back, you ran like a coward", the police officer said in court.
When the officer pulled out the tube of personal lubricant, he said, "I brought a little gift for you".
"You are going to need a lot of this", he said, implying that Rojas would be raped while serving his sentence.
The officer then pulled out a bottle of lotion. What happened next was Rojas got out of his auto and fired at the officer.
The March 2016 incident that led to Rojas' arrest and conviction began when the officer, then off duty and driving with his son, had stopped Rojas after he saw him driving erratically. During the pursuit, Rojas, 21, began shooting through the windshield of the officer's auto.
Rojas' shots missed the officer's son, AP reports, but ended up hitting the officer three times, according to police.
The state called the ambush of the detective "Any officer's worst nightmare".
That's when the undercover officer who was taking his child to school chose to pull Rojas over on Collins Road near Roosevelt Boulevard, police said.
When questioned by a judge in a 30-minute hearing about the stunt, the officer refused to comment, the Times-Union reported.
Rojas will have to serve at least 25 years before being eligible for parole. Rojas stole a truck, raced back to his neighborhood and barricaded himself inside his home after crashing the truck into a neighbor's house, according to police.
The officer, who made a full recovery, said in court: 'I will take those bullets instead of a fellow officer and an innocent bystander.
In October, a jury convicted Rojas of first-degree murder, attempted manslaughter, two counts of aggravated assault and other charges.
Rojas did not speak during the sentencing and his family left the courtroom in tears, according to reports.