CMS-4299 Implement principal (and key)