County detectives and investigators attached to the office of the county prosecutor in the several counties of this State are hereby authorized and empowered to administer oaths; provided, however, that such oaths are administered only in relation to a matter involving a violation or an attempted violation of the criminal laws of this State.
N.J.S. § 41:2-3.1