Grotius' theory of Just War holds that self-defense against an invader is justification for the use of force.
But Grotius did not consider a rebellion to be a Just War.