; or (B) an alleged offense of domestic violence under section 928b of this title (article 128b of the Uniform Code of Military Justice) or an attempt to commit such an offense that is punishable under section 880 of this title (article 80 of the Uniform Code of Military Justice). (4) Military judge and military magistrate The terms military judge and military magistrate mean a commissioned officer of the armed forces who is a member of the bar of a Federal court or a member of the bar of the highest court of a State and who is certified to be qualified, by reason of education, training, experience, and judicial temperament, for duty as a military judge or magistrate by the Judge Advocate General of the armed force of which the officer is a member. (5) Protective order The term protective order means an order that— (A) restrains a person from harassing, stalking, threatening, or otherwise contacting or communicating with a victim of an alleged sex or domestic violence offense, or a family member or associate of the victim, or engaging in other conduct that would place such other person in reasonable fear of bodily injury to any such other person; and (B) by its terms, explicitly prohibits— (i) the use, attempted use, or threatened use of physical force by the person against a victim of an alleged sex or domestic violence offense, or a family member or associate of the victim, that would reasonably be expected to cause bodily injury; (ii) the initiation by the person restrained of any contact or communication with such other person