Any person, who has been,—
- convicted of an offence punishable under any law for the time being in force; or
- ordered to give security for his good behaviour or maintaining peace under section 117 of the Code of Criminal Procedure, 1973 for a proceeding under section 107 or section 108 or section 109 or section 110 of the said Code; or
- arrested in connection with an offence punishable under any law for the time being in force or detained under any preventive detention law,