According to Section 106 when a Court of Session or Court of a Magistrate of first class convicts a person of any of the offences specified in sub-section (2) or of abetting any such offence and is of opinion that it is necessary to take security from such person for keeping the peace, the Court may, at the time of passing sentence on such person, order him to execute a bond, with or without sureties, for keeping the peace for such period, not exceeding three years, as it thinks fit.
The offences specified under sub-section (2) are as follows:
(a) any offence punishable under Chapter VIII of the Indian Penal Code, 1860.
(b) any offence which consists of or includes, assault or using criminal force or committing mischief;
(c) any offence of criminal intimidation;
(d) any other offence which caused, or was intended or known to be likely to cause a breach of the peace.
However, if the conviction is set aside on appeal or otherwise, the bond so executed shall become void.