2. A person who has been detained or arrested for commission of an offense other than a crime shall not be subjected to a body cavity search unless:
a. The search is authorized by a warrant or consent; or
b. The person is lawfully confined in an adult county correctional facility and the search is based on a reasonable suspicion that a weapon, controlled dangerous substance, as defined by the "Comprehensive Drug Reform Act of 1987," N.J.S.2C:35-1 et al., or contraband, as defined by the Commissioner of the Department of Corrections, will be found, and the search is authorized pursuant to the regulations promulgated by the Commissioner of the Department of Corrections.