There is nothing of value to you that you can provide to a cop during any detention, no matter how innocuous. All you have to do is identify yourself. The cop should know and respect that.
-—All you HAVE to do is identify yourself-—
Which he refused to do, thereby creating tension.