Original: In this case, the author, who would have preferred to be named, was legally prohibited from disclosing his or her identity.
Simplified: In this case, the author, who would have preferred to be named, could not reveal his or her identity because it was against the law.