If there is a reasonable suspicion that you may be involved in criminal activity, a police officer may require you to identify yourself and explain your presence at a particular time.
If the officer has reasonable grounds to believe that you are armed or may be dangerous, he or she may conduct a limited pat down of your outer garments for the purpose of detecting weapons.
The officer may ask you questions pursuant to an investigation. You have a constitutional right not to answer them, but if you refuse to identify yourself, the officer may have grounds to make an arrest.
At the conclusion of this temporary detention, the officer must either arrest you or let you go.