Additionally, they go over this explicitly in the Adam West Batman movie. The press demands to know Batman's identity and credentials, and the commissioner backs him up by saying that Batman's anonymity was for his own safety, and that he had been duly deputized.