A judicial confession is the written or oral assertion of some fact against oneself before a competent judge by any party concerning the matter of the trial, whether made spontaneously or while being questioned by the judge.
Source: Code of Canon Law (Vatican.va)