You should give them all your information, including all the illicit substances you have in your possession, and then admit to all the crimes you've committed in the last month, included with proof that you did it. Remember, security is better than freedom.

Just kidding!

But yes, I believe that you must identify yourself to a police officer if he insists - even if you did nothing wrong.