He could have shown her his badge or ID card when she asked for it.
There are several cases like that of police impersonators rapists despite that they usually get severe sentences. One of the first was in California in 1948, Caryl Chessman represented himself, was convicted of kidnapping, sentenced to death, and executed after a then record 12 years.