Types of Rehabilitation for Criminals?

There are many type of rehabilitation for criminals such as Drug Rehab, Sex Rehab for people who have raped in the past, and Alcohol rehab. Such rehabs are offered in jail or prison, these rehabs for criminals or who committed harsher crimes is sometimes handed over to psychologist or psychiatrist.