That's not Constitutional though. You're covered under privacy and right not to be hassled by the government.photog212 said:The ID thing is usually a State law, it depends on where you're at. My State law dictates that if you are over 16 (15?) you have to carry a state ID.beddo said:I take it you're from the US. You are not required to give your ID to an officer if you are going about your business.
As for swearing, well firstly, don't swear at the police. You do have first amendment rights that you could challenge this on.
Where you actually charged with the offence?
Not that this would stop the state from enforcing it.