core: support principal name as input of fetch principal

Change-Id: I229e8c4f337f22725d4a23e9f2631c8f76c3f81d
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>