core: support principal name as input of fetch principal

sync with engine.

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