NEW YORK (AP) Prosecutors want to keep testimony of three key witnesses out of public view at the trial of a New York man charged with plotting terror attacks with homemade bombs.

The Manhattan district attorney's office wants an undercover police officer and two informants to testify anonymously and in a closed courtroom during Jose Pimentel's trial. Prosecutors say the three witnesses could be endangered if their identities became public.

A judge didn't immediately rule Wednesday. He noted the legal bar for closing a court is high.

Authorities say Pimentel was an al-Qaida sympathizer who spoke of plans to attack police and soldiers and was making a pipe bomb when arrested.

Pimentel's lawyers say he was entrapped. They say the public should hear about the tactics used.