def getPrincipal(self): hn = parseHashOrName(self.__principal) if isinstance(hn, spki.Hash): return hn else: return resolveName(hn).getPrincipal()