Well, I've actually had lots of contact with law enforcement. Most of my family is in (or retired from) law enforcement. Not to mention that was the career I initially chose. I worked as a police dispatcher before being hired as a police officer. At the time I sought my career, although I wasn't aware of AS I recognized all of the traits in myself, actively hiding those traits when I could.
Although this works really well when you only occasionally run into people, I'm sure my coworkers (like my friends) detected something amiss. They (cops) are more prone to key in on strange body language and lack of (or recognition of) social cues, but most overlook this sort of thing once they get to know you. In fact, I think they found it more endearing. It law enforcement, you come across a lot of strange personalities. Most recognize there is not necessarily a correlation between strange personality quirks and any sort of malevolent intent. In fact, some of the most dangerous encounters often occured with the most seemingly normal people.
The culture of a specific department can really affect things, but for the majority of police officers are pretty understanding, level headed people.
That being said, I've had more than a few encounters with coworkers in that field that, no matter how well I did my job, how polite or kind I was, they just keyed in on my aspie traits and almost always seemed to hate me no matter what I did -- these few were all male officers.
As far as contacts outside of work, I've strangely been pulled over a lot but I've had almost no tickets. In most these encounters I was treated well. The few I have had where the officer was a real a-hole, I don't think that had anything to do with my AS; They were either just an a-hole or they were probably just having a bad day (it happens to everybody).