In California, when is someone required to show a badge if they claim to be a police officer?

If someone who is not in uniform is claiming to be a police officer, if I ask them to see their badge and department ID, are they required to show it, assuming this person is a real officer to begin with? I am in California to make this more specific.
4 answers 4