Under oath

Having taken a formal oath (solemn promise).

The man was under oath when he spoke before the judge.