"No, I'm not going to say what I was doing abroad and who I know in XYZ country..."
If you're sent to secondary inspection to be held for a few hours and shaken up with tough talk, even if you're eventually sent on your way, you've been restrained and violated.
Regardless of what the law says on the point.