"My view is that torture is wrong, it’s unacceptable, it’s illegal, and I think it’s ineffective," Wray told US Senate Judiciary Committee.
Wray also noted that he considers waterboarding a form of torture, and therefore also illegal.
The American Civil Liberties Union (ACLU) had expressed some concerns about Wray's service as Assistant Attorney General in charge of the Justice Department's Criminal Division during the administration of former President George W. Bush.
The ACLU claims Wray is named on 29 documents related to the Bush administration's use of torture against detainees in the torture database it created under the Freedom of Information Act. The content in all the documents with Wray's name on them were redacted.