A uniformed Secret Service officer has been charged with sexting who he thought was a 14-year-old girl—and some of the online communications originated from the White House, where he often checked identification at the entrance, according to court records.

The authorities said that Lee Robert Moore, 37, did not know that the teenager he allegedly was texting was actually two undercover Delaware police officers. According to court documents, Moore befriended the officers online using the application "Meet24," and they later switched to the Kik application.

The court record (PDF) provides a long list of salacious chats allegedly between Moore, who is married, and the two undercover police officers.

The Secret Service, which is charged with protecting the president and family, has been beset with allegations of sexual shenanigans dating to 2012. That year, for example, more than a dozen agents and officers were implicated for hiring prostitutes while working a presidential trip in South America.

In the Moore case, meanwhile, one alleged Kik message in September showed that the officer became suspicious about getting set up. He didn't follow his instincts, though. "... Do you know how many fake female profiles are out there, a guy needs some reassurance that he is talking to who he thinks he is talking to, and not, I shudder to think," the message said.

Days later, according to the court record, he allegedly texted about what would make her more nervous: "riding on the motorcycle with me or having sex with me?" He is also accused of sending the undercover officer a picture of his penis.

Other messages, according to the court record, reveal that Moore allegedly was texting her "in the break room" and that he only had five minutes to chat before he had "to go relieve someone else to go on break."

The defendant has been placed on administrative leave and is accused in federal court of attempted transfer of obscene material to a minor. He is also accused of two state counts of solicitation of a minor and of providing obscene material to a minor.

According to the court record, Moore told authorities in a recorded interview that he believed the person he was communicating with "was a 14-year-old female from Delaware."

The Secret Service said Moore's security clearance was suspended along with access to Secret Service facilities.

"The Secret Service takes allegations of potential criminal activity extremely seriously," the service said in the statement.