Gov. Jerry Brown of California signed a bill into law Friday that requires minimum sentences in sexual assault cases, a direct rebuke of the penalty handed down in a Stanford sexual assault case that attracted nationwide attention this year.

In that case, a former Stanford student, Brock Turner, 21, served just three months in jail after being convicted of sexually assaulting a 23-year-old woman behind a Dumpster. His sentence — originally six months — was widely criticized as being far too short, with many excoriating the judge who issued it, Judge Aaron Persky of Santa Clara County.

The new law imposes a mandatory minimum sentence for such assaults, removing a measure of judicial discretion in such cases.