The provisions of a confirmed plan bind the debtor and any creditor, whether or not—
(1) a proof of such creditor’s claim is filed or deemed filed under section 501 of this title;
(2) such claim is allowed under section 502 of this title; or
(3) such creditor has accepted the plan.
Except as provided in subsection (c) of this section, the debtor is discharged from all debts as of the time when—
(1) the plan is confirmed;
(2) the debtor deposits any consideration to be distributed under the plan with a disbursing agent appointed by the court; and
the court has determined—
(A) that any security so deposited will constitute, after distribution, a valid legal obligation of the debtor; and
(B) that any provision made to pay or secure payment of such obligation is valid.
The debtor is not discharged under subsection (b) of this section from any debt—
(1) excepted from discharge by the plan or order confirming the plan; or
(2) owed to an entity that, before confirmation of the plan, had neither notice nor actual knowledge of the case.
(Pub. L. 95–598, Nov. 6, 1978, 92 Stat. 2624.)