rightfully

adverb
  1. in a way that is morally right, just, or deserved
  2. according to what is legally or officially correct

Examples