There are different custodial sentences that a Court can impose. The Sheriff Summary Court can impose a custodial sentence up to 12 months whereas on Sheriff Solemn proceedings this rises to 5 years. A Justice of the Peace is limited to imposing 90 days in custody, but a Judge (sitting in the High Court) can sentence for any length of time including a Life Sentence.