"If people don't trust Congress and federal judges to make sure we are abiding by the constitution and the law, then we have some problems," Obama said.
The president was also critical of the leaks that led to the disclosures. Such leaks compromise the country's ability to go after terrorists, he warned. "I don't welcome leaks. There's a reason why these programs are classified." he said.
"If every step we are taking to prevent a terrorist act is on the front of newspapers or on television, then [the terrorists] are going to be able to get around our preventative measures," he said.
Sign up for CIO Asia eNewsletters.