Contempt towards officials is addressed in the Punitive articles, specifically Article 88 of the U.S. Uniform Code of Military Justice in the Manual for Courts-Martial (MCM), United States (2008 Edition) as follows:
The official or legislature against whom the words are used must be occupying one of the offices or be one of the legislatures named in Article 88 at the time of the offense. Neither "Congress" nor "legislature" includes its members individually; "Governor" does not include "lieutenant governor". It is immaterial whether the words used against the official or legislature are used in an official or private capacity. If not personally contemptuous, adverse criticism of one of the officials or legislatures named in the article in the course of a political discussion, even if emphatically expressed, may not be charged as a violation of the article.
Similarly, expressions of opinion made in a purely private conversation should not ordinarily be charged. Giving broad circulation to a written publication containing contemptuous words of the kind made punishable by this article, or the utterance of contemptuous words of this kind in the presence of military subordinates, aggravates the offense. Unlike civilian legislation covering defamation, the truth or falsity of the statements is immaterial.
Article 80—Attempts
Dismissal, forfeiture of all pay and allowances, and confinement for one year.
This article incorporates text from Manual for Courts-Martial, a public domain work of the United States Government.