Refactor functions getting credentials by ID

 - add new improved function having support for much more credentials types
 - rewrite existing functions to use the new one

Change-Id: I75222240104291703da509cbe206d0a24f3c767a
1 file changed