Here's the Utah criminal code
76-8-311.1. Secure areas -- Items prohibited -- Penalty.
(1) In addition to the definitions in Section 76-10-501, as used in this section:
(a) "Correctional facility" has the same meaning as defined in Section 76-8-311.3.
(b) "Explosive" has the same meaning as defined for "explosive, chemical, or incendiary device" defined in Section 76-10-306.
(c) "Law enforcement facility" means a facility which is owned, leased, or operated by a law enforcement agency.
(d) "Mental health facility" has the same meaning as defined in Section 62A-15-602.
(e) (i) "Secure area" means any area into which certain persons are restricted from transporting any firearm, ammunition, dangerous weapon, or explosive.
(ii) A "secure area" may not include any area normally accessible to the public.
(2) (a) A person in charge of a correctional, law enforcement, or mental health facility may establish secure areas within the facility and may prohibit or control by rule any firearm, ammunition, dangerous weapon, or explosive.
(b) Subsections (2)(a), (3), (4), (5), and (6) apply to higher education secure area hearing rooms referred to in Subsections 53B-3-103(2)(a)(ii) and (b).
(3) At least one notice shall be prominently displayed at each entrance to an area in which a firearm, ammunition, dangerous weapon, or explosive is restricted.
(4) (a) Provisions shall be made to provide a secure weapons storage area so that persons entering the secure area may store their weapons prior to entering the secure area.
(b) The entity operating the facility shall be responsible for weapons while they are stored in the storage area.
(5) It is a defense to any prosecution under this section that the accused, in committing the act made criminal by this section, acted in conformity with the facility's rule or policy established pursuant to this section.
(6) (a) Any person who knowingly or intentionally transports into a secure area of a facility any firearm, ammunition, or dangerous weapon is guilty of a third degree felony.
(b) Any person violates Section 76-10-306 who knowingly or intentionally transports, possesses, distributes, or sells any explosive in a secure area of a facility.
I don't know how to highlight or bold sections so I will re-state
at least one notice at the secure area shall be given, the facility has to provide a "secure storage" for your firearm. Be warned though... there are still some police stations and all courts have not complied with the law. I would reccomend you call or write the station and confirm that they have a "secure storage" for your firearm prior to entering. The courts do not comply with the law because they feel that the judicial system is equal to the legislative system and thus they can't tell them what to do... nany nany poo poo. It has been an issue that has been frustrating many of us 2a advocates.
you are within the law... but the law enforcement agency may not see it that way.
remember, I am NOT a lawyer... and this is only my advice based on my experience.