A claim, institution or individual that is legally recognised and follows the law is called legitimate.
Example:
For example, if you named a relative as your beneficiary in the will, they will be called your legitimate heir since they are recognised by the law.