But, it can also be brought, for example, in cases when someone is incarcerated in a jail or prison despite (1) not having been charged with a crime, (2) not having their detention authorized by a court within the legally permitted time period prior to a conviction, (3) not having been convicted of a crime following a criminal trial, or (4) not being
released upon the expiration of a criminal sentence imposed pursuant to a conviction.