That maybe the case if he stops you on the street but as I said in the road traffic act he can ask you and you must give it to him, now if you want to piss him off, go ahead say to him not till you tell me why you want to know or under what law do you invoke this authority to ask me for my details
(and when I say him i mean him/her )