It shall be a complete defense to any civil or criminal action brought pursuant to sections 21, 22, 23, 24 and 26 of P.L. 1993, c.29 (C.2A:156A-27, C.2A:156A-28, C.2A:156A-29, C.2A:156A-30 and C.2A:156A-32) that the person made good faith reliance on:
a. a court warrant or order, a legislative authorization or a statutory authorization;b. a request of an investigative or law enforcement officer under section 13 of P.L. 1968, c.409 (C.2A:156A-13); orc. a good faith determination that section 4 of P.L. 1968, c.409 (C.2A:156A-4) permitted the conduct which is the subject of the complaint.