; and (B) the Secretary agrees to enforce protective orders issued by such authorities that are consistent with section 2265(b) of title 18. (c) Purpose and form of issuance A military court protective order may be issued for the purpose of protecting a victim of an alleged sex or domestic violence offense, or a family member or associate of the victim, from a person subject to chapter 47 of this title (the Uniform Code of Military Justice) who is alleged to have committed such an offense. (d) Timing and manner of issuance A military court protective order may be issued— (1) by a military magistrate, before referral of charges and specifications to court-martial for trial, at the request of— (A) a victim of an alleged sex or domestic violence offense; or (B) a Special Victims’ Counsel or other qualified counsel acting on behalf of the victim