Sen. John McCain (R-AZ) said Saturday that he will will push back against President-elect Donald Trump if he tries to implement waterboarding or torture.

Speaking at the Halifax International Security Forum, McCain said that he and others in the Senate will push back against anyone who wants to go back to waterboarding, noting that it is illegal.

“I don’t give a damn what the president wants to do,” he said. “We will not waterboard. We will not torture people.”

McCain went even further to say that anyone who brought back waterboarding would be in court in a “New York minute.”

“If they started waterboarding, I swear to you that we’d have them in court in a New York minute,” McCain said.

McCain, who served as a Navy pilot during the Vietnam War and was held more than five years as a prisoner of war, has a contentious relationship with Trump, who notably said that he likes people who “don’t get captured” in reference to McCain. Trump has said in the past that he would like to bring back waterboarding and “worse” to fight terrorists.

The moderator asked McCain if he had spoken to Trump since he was elected and he said it had and that it went “fine.” He also played coy on whether Trump offered him a job.

“Did he offer you a job?” the moderator asked.

“Missed that,” McCain said.

Watch the entire panel below: