DP Kindiki has defended the legality of his rise to office, arguing before the High Court that he was elected by Parliament through a constitutional process rather than appointed.