Roger Federer has secured the 100th title of his career with a win at the Dubai Championships on Saturday.